app/Http/Requests/CarRequest.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 [
            'name'                  => 'required|min:3|max:255',
            'production_year'       => 'required|date|before:tomorrow',
            'travelled_kilometers'  => 'required|min:0|max:1000000',
            'manufacturer_id'       => 'required',
            'models_car_id'         => 'required',
            'image'                 => 'required',
        ];
    }
public function rules ( ) { return [ 'name' => 'required|min:3|max:255' , 'production_year' => 'required|date|before:tomorrow' , 'travelled_kilometers' => 'required|min:0|max:1000000' , 'manufacturer_id' => 'required' , 'models_car_id' => 'required' , 'image' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .