app/Http/Requests/ProjectRequest.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|string',
            'description'=>'nullable|string',
            'user_id'=>'required|exists:users,id',
            'startDate'=>'required|date',
            'endDate'=>'required|date',
        ];
    }
public function rules ( ) { return [ 'name' => 'required|string' , 'description' => 'nullable|string' , 'user_id' => 'required|exists:users,id' , 'startDate' => 'required|date' , 'endDate' => 'required|date' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .