app/Http/Requests/EventStoreRequest.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 [
            'title' => 'required',
            'event_date' => 'nullable',
            'about' => 'nullable',
            'file' => [
                'required', 'file',
            ],
        ];
    }
public function rules ( ) { return [ 'title' => 'required' , 'event_date' => 'nullable' , 'about' => 'nullable' , 'file' => [ 'required' , 'file' , ] , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .