app/Http/Requests/DepartmentValidator.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 [
            'departmentname'=>'required|min:3|max:15',
            'shortname'=>'required',
            'code'=>'required',
            'departmentdescription'=>'required'
        ];
    }
public function rules ( ) { return [ 'departmentname' => 'required|min:3|max:15' , 'shortname' => 'required' , 'code' => 'required' , 'departmentdescription' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .