app/Http/Requests/UserValidator.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 | min:3 | max:50',
            'email' => 'required|unique:users| email:rfc,dns',
            'password' => 'required | confirmed | min:4 | max:15',
            'role'=>'required',
            'status'=>'required'
        ];
    }
public function rules ( ) { return [ 'name' => 'required | min:3 | max:50' , 'email' => 'required|unique:users| email:rfc,dns' , 'password' => 'required | confirmed | min:4 | max:15' , 'role' => 'required' , 'status' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .