app/Http/Requests/Route/StoreRouteRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'route_name' => 'required',
            'routes' => 'array',
            'routes.*' => 'required',
            'travel_time' => 'array',
            'travel_time.*' => 'required',
            'distance' => 'array',
            'distance.*' => 'required'
        ];
    }
public function rules ( ) { return [ 'route_name' => 'required' , 'routes' => 'array' , 'routes.*' => 'required' , 'travel_time' => 'array' , 'travel_time.*' => 'required' , 'distance' => 'array' , 'distance.*' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .