Support the ongoing development of →
Security Database Validation
Last updated 2 years ago.

Hello there,

You have many ways to handle this.

Simpliest way is maybe to add an "active" and activation link field in your user table (Boolean or TINYINT, depending of your SQL system) and change the user creation default behavior in the controllers offered by Laravel.

Or you could create a second table in your database to register user status and potential changes as Laravel do for mail links and password recovery.

You could as well modify the password recovery default system to handle validation links as well... There's many, many ways to do that.

You could manage that with trait on your user Class and policy in auth class requiring the user to be activated to log in... etc...

Can you be more specific? Maybe?


If you are at starting point of development, I suggested that use already developed Laravel app boilerplate with email verification process on registration


I can suggest very easy and step by step tutorial for email verification after register new user. You can make it manually :


You could also look at the source code and see how it is done here


Thank you all for your help!!


Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.