Category: Laravel

In this blog, I will be telling about how you can verify a user by sending him verification mail through Laravel default Auth. So Laravel provides a beautiful and a simple way to send verification mail and it itself generates the signature and everything so you don’t need to implement it b yourself.

This route has to be named as “verification.send” and it will look something like this : This will resend the verification mail with new signature.

For this you have to create a job by using : Now you have to overwrite the sendEmailVerificationNotification() method for dispatching the VerifyEmailJob with user forsending verification email like this : Inside App/Jobs/VerifyEmailJob, create a private variable named user and initialize the user variable in __construct() method.

Now the email will be pushed to queue and will be placed in jobs db table.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners