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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners