Maged's avatar
Level 6

"message": "Route [verification.verify] not defined.",

In api registeration i get "message": "Route [verification.verify] not defined.", user is registered but that's the return from it, it worked fine before i emplemented MustVerifyEmail in user model

i see answers online to add

Auth::routes(['verify' => true]);

still didn't work, same issue

0 likes
1 reply
Sergiu17's avatar

https://github.com/laravel/fortify/blob/1.x/routes/routes.php#L85

You have to add a new route in order to verify your accounts, something like this...name is important

        Route::get('/email/verify/{id}/{hash}', [VerifyEmailController::class, '__invoke'])
            ->middleware(['auth:'.config('fortify.guard'), 'signed', 'throttle:'.$verificationLimiter])
            ->name('verification.verify');

Please or to participate in this conversation.