app/Http/Requests/LeavesValidator.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 [
            'from'=>'required',
            'to'=>'required',
            'leavetype'=>'required',
            'leavereason'=>'required',
            'appliedon'=>'required',
            'status'=>'required',
            'adminremarks' =>'',
            'appliedby' =>'required',
            'checkedon'=>'',
            'checkedby' =>''
        ];
    }
public function rules ( ) { return [ 'from' => 'required' , 'to' => 'required' , 'leavetype' => 'required' , 'leavereason' => 'required' , 'appliedon' => 'required' , 'status' => 'required' , 'adminremarks' => '' , 'appliedby' => 'required' , 'checkedon' => '' , 'checkedby' => '' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .