我通过添加更改了默认表登录表
```php protected $table = 'client_table';
```
但是当尝试使用默认的 laravel Auth 注册表时,它坚持使用表 users
最佳答案
您应该只需要进行您所做的更改,即:
protected $table = 'different_table';
如果使用注册功能,那么您还需要更改 RegisterController 的 validator() 函数:
'email' => 'required|string|email|max:255|unique:users',
应该变成:
'email' => 'required|string|email|max:255|unique:different_table',
关于laravel-5.4 - Laravel 5.4 Auth 注册变更表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42799573/