check for empty route

This commit is contained in:
Nabeel Shahzad 2018-08-04 11:47:56 -05:00
parent c40a8c893d
commit 1f50d2b7f7

View File

@ -21,12 +21,12 @@ class RouteRequest extends FormRequest
public function rules()
{
$rules = [
'route' => 'required|array',
'route.*.name' => 'required',
'route' => 'nullable|array',
/*'route.*.name' => 'required',
'route.*.order' => 'required|int',
'route.*.nav_type' => 'nullable|int',
'route.*.lat' => 'required|numeric',
'route.*.lon' => 'required|numeric',
'route.*.lon' => 'required|numeric',*/
];
return $rules;