1

我的电子邮件验证有问题。我也没有注释Features::emailVerification(),我已经在我的用户模型中实现了 MustVerifyEmail

class User extends Authenticatable implements MustVerifyEmail
{
    use Notifiable;

我的 web.php 中有 3 条路线

Route::get('/email/verify', function () {
    return view('auth.verify-email');
})->middleware(['auth'])->name('verification.notice');

Route::get('/email/verify/{id}/{hash}', function (EmailVerificationRequest $request) {
    $request->fulfill();

    return redirect('/home');
})->middleware(['auth', 'signed'])->name('verification.verify');

Route::post('/email/verification-notification', function (Request $request) {
    $request->user()->sendEmailVerificationNotification();

    return back()->with('status', 'verification-link-sent');
})->middleware(['auth', 'throttle:6,1'])->name('verification.send');

但是我注册时仍然没有收到电子邮件,请有人帮忙。

4

0 回答 0