check for empty route
This commit is contained in:
parent
c40a8c893d
commit
1f50d2b7f7
@ -21,12 +21,12 @@ class RouteRequest extends FormRequest
|
|||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
$rules = [
|
$rules = [
|
||||||
'route' => 'required|array',
|
'route' => 'nullable|array',
|
||||||
'route.*.name' => 'required',
|
/*'route.*.name' => 'required',
|
||||||
'route.*.order' => 'required|int',
|
'route.*.order' => 'required|int',
|
||||||
'route.*.nav_type' => 'nullable|int',
|
'route.*.nav_type' => 'nullable|int',
|
||||||
'route.*.lat' => 'required|numeric',
|
'route.*.lat' => 'required|numeric',
|
||||||
'route.*.lon' => 'required|numeric',
|
'route.*.lon' => 'required|numeric',*/
|
||||||
];
|
];
|
||||||
|
|
||||||
return $rules;
|
return $rules;
|
||||||
|
Loading…
Reference in New Issue
Block a user