Email activation with Laravel
It’s week one of my journey and I’m feeling positive! I have a plan and I’m ready to go. After having installed Laravel I’ve decided that the first thing I’m going to work on is the user authentication side of things.
Registering a user via email confirmation
Out of the box Laravel 5 actually does all the user authentication for you, I really have very little to do. But one piece of functionality I do want to add in is making sure the user confirms registration by clicking on a link I send to their email. The primary reason for this is to prevent spam accounts being created. Let me show you how I did it.
The way this will work is as follows:
A user registers an account. They are sent an email. User clicks on link in email and account is activated. User gets logged in.
Link:
This post is submitted by our members. Submit a new post.
Tags: Tutorials Laravel 5 Laravel 5.1