app/Http/Requests/ToDoValidator.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 | min:5 | max:50',
            'description'    => 'required |min:10 |max:500',
            'assignedDate'    => 'required',
            'assignedTo'    => 'required',
            'deadline'    => 'required',
            'task_priority'    => 'required',
            'remarks'    => 'required',
        ];
    }
public function rules ( ) { return [ 'title' => 'required | min:5 | max:50' , 'description' => 'required |min:10 |max:500' , 'assignedDate' => 'required' , 'assignedTo' => 'required' , 'deadline' => 'required' , 'task_priority' => 'required' , 'remarks' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .