Source: jeroenvanrensen.medium.com

Manual auth in Laravel: email verification

Category: Laravel

We think you might be interested in this job:

Lead Full-Stack Developer

SPARK Business Works

Fortunately, Laravel allows you to add manual auth without the use of any package, just Laravel’s core. In this series, we’re going to learn how to add manual auth in Laravel. These topics will be covered: Note: For the examples in this series, I’ve chosen to use controllers and blade views.

For example: Finally, we’ll add the necessary route: In case the user can’t find the link anymore, or it has expired, the user should be able to request another link. First, we’ll add the logic in the EmailVerificationController: Next, we’ll add a form in our view to allow the user to request another link: And finally, we’ll add the necessary route to make this work: The last and most important step is to allow the user to click the link in the email we sent.
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.
Community Partners