routes/web.php
组中删除所有 verified
中间件。 - Arthur Shlain在 AuthController.php
中注释掉 // $user->sendEmailVerificationNotification();
在 App\Models\User.php
中注释掉 // implements MustVerifyEmail
取消电子邮件验证:
Auth::routes(['verify' => false]);
MustVerifyEmail
接口class User extends Authenticatable implements MustVerifyEmail
{
...
}
class User extends Authenticatable
{
...
}
User
(或任何Notifiable
)模型中实现了MustVerifyEmail
合约?(class User extends Authenticatable implements MustVerifyEmail { ... }
) - Kenny Horna