我正在为管理员创建自定义防护,但收到错误“未定义身份验证防护”我尝试过“php artisan config:clear 和 php artisan config 缓存”,但仍然是错误。我想知道我做错了什么。这是我的身份验证配置 <?phpreturn [ /* |-------------------------------------------------------------------------- | 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, a great default configuration has been defined for you | here which uses session storage and the Eloquent user provider. | | All authentication drivers have a user provider. This defines how the | users are actually retrieved out of your database or other storage | mechanisms used by this application to persist your user's data. | | Supported: "session", "token" | */ 'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ], 'api' => [ 'driver' => 'token', 'provider' => 'users', 'hash' => false, ], 'SuperAdmin' => [ 'driver' => 'session', 'provider' => 'admins', ],您可以在此处定义密码确认前的秒数 | 超时,系统会提示用户通过 | 重新输入密码。确认屏幕。默认情况下,超时时间为三个小时。| */
添加回答
举报
0/150
提交
取消