app/Http/Requests/Employee/StoreEmployeeRequest.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',
            'email' => 'required|email|unique:users,email',
            'password' => 'required|confirmed|min:8',
            'employee_no' => 'required',
            'first_name' => 'required',
            'last_name' => 'required',
            'role' => 'required',
            'contact' => 'required',
            'address' => 'required',
        ];
    }
public function rules ( ) { return [ 'name' => 'required' , 'email' => 'required|email|unique:users,email' , 'password' => 'required|confirmed|min:8' , 'employee_no' => 'required' , 'first_name' => 'required' , 'last_name' => 'required' , 'role' => 'required' , 'contact' => 'required' , 'address' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .