Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why does Laravel 8.x / Jetstream email verification not work?

I am not able to implement email verification using laravel 8.x and Laravel Jetstream.

As the instructions direct in the Laravel Jetstream documentation, I uncommented the emailVerification feature in config/fortify.php.

Features::emailVerification(),

I implemented the MustVerifyEmail interface in App/Models/User.

use Illuminate\Contracts\Auth\MustVerifyEmail;

I verified that both of these changes actually occurred on the server. I ran php artisan optimize to clear the configuration cache. I verified that Laravel will send an email, by using the lost password functionality, which produced the specified email. I inserted the three routes recommended in the Laravel authentication documentation.

like image 959
bittids Avatar asked Oct 20 '25 02:10

bittids


1 Answers

You forgot to add implements MustVerifyEmail

class User extends Authenticatable implements MustVerifyEmail
like image 142
Santosh Kshirsagar Avatar answered Oct 22 '25 05:10

Santosh Kshirsagar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!