app/Http/Requests/AppraisalValidator.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 [
            'employeename'=>'required',
            'emp_id'=>'required',
            'department'=>'required',
            'from'=>'required',
            'to'=>'required',
            'accomplishment'=>'required',
            'programattented'=>'required',
            'goalsobjective'=>'required',
            'issues'=>'required',
            'strength'=>'required',
            'weakness'=>'required',
            'improvement'=>'required',
            'expectations'=>'required',
            'supervisedby' =>''
        ];
    }
public function rules ( ) { return [ 'employeename' => 'required' , 'emp_id' => 'required' , 'department' => 'required' , 'from' => 'required' , 'to' => 'required' , 'accomplishment' => 'required' , 'programattented' => 'required' , 'goalsobjective' => 'required' , 'issues' => 'required' , 'strength' => 'required' , 'weakness' => 'required' , 'improvement' => 'required' , 'expectations' => 'required' , 'supervisedby' => '' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .