Source: jeroenvanrensen.medium.com

Manual auth in Laravel: email verification

Category: Laravel

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

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