Support the ongoing development of Laravel.io →
Security Database Validation
Last updated 7 months ago.
0

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?

0

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

0

I can suggest very easy and step by step tutorial for email verification after register new user. You can make it manually : http://itsolutionstuff.com/post/how-to-implement-email-verific...

0

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

0

Thank you all for your help!!

0

Sign in to participate in this thread!

LoadForge

Your banner here too?

Moderators

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

Your logo here?

Laravel.io

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

© 2022 Laravel.io - All rights reserved.