app/Http/Requests/FilmRequest.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 [
            'id' => 'nullable',
            'name' => 'required',
            'description' => 'required',
            'release' => 'required',
            'date' => 'required',
            'rating' => 'required|min:1|max:5',
            'ticket' => 'required',
            'price' => 'required|min:1',
            'country' => 'required',
            'genres' => 'required',
            'photo' => 'required',
        ];
    }
public function rules ( ) { return [ 'id' => 'nullable' , 'name' => 'required' , 'description' => 'required' , 'release' => 'required' , 'date' => 'required' , 'rating' => 'required|min:1|max:5' , 'ticket' => 'required' , 'price' => 'required|min:1' , 'country' => 'required' , 'genres' => 'required' , 'photo' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .