check for empty route
This commit is contained in:
parent
c40a8c893d
commit
1f50d2b7f7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user