app/Http/Requests/UserRequest.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:4|max:120',
            'email'=>'required|min:4|max:250|unique:users|email',
            'password'=>'required|min:4|max:120',
            'type'=>'required'
        ];
    }
public function rules ( ) { return [ 'name' => 'required|min:4|max:120' , 'email' => 'required|min:4|max:250|unique:users|email' , 'password' => 'required|min:4|max:120' , 'type' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .