在我的项目中,我有用户和成员表以及雄辩的模型。我将在成员表中使用 jwt 身份验证,并更改了相应的配置文件,但它仍然转到用户模型。
这是config/auth.php:
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for your application. You may change these defaults
| as required, but they're a perfect start for most applications.
|
*/
'defaults' => [
'guard' => 'web',
'passwords' => 'users',
],
/*
|--------------------------------------------------------------------------
| Authentication Guards
|--------------------------------------------------------------------------
|
| Next, you may define every authentication guard for your application.
| Of course, …Run Code Online (Sandbox Code Playgroud)