app/Http/Requests/TaskRequest.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|max:30',
            'description' => 'required|max:200',
            'expiration_date' => 'required|date',
            'completion_date' => 'nullable|date',
        ];
    }
public function rules ( ) { return [ 'title' => 'required|max:30' , 'description' => 'required|max:200' , 'expiration_date' => 'required|date' , 'completion_date' => 'nullable|date' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .