I\'m currently working on my Laravel app and to prevent spam I decided that only active users are able to login. I\'m currently using Laravel\'s login system just like in La
In case, you want to keep everything as simple, you can use Laravel built-in feature. It is email verification. I do not guarantee this way would resolve your problem. It is reference in case you didn't know about it before.
Follow the doc at https://laravel.com/docs/7.x/verification, all you have to do are a few steps.
User model with MustVerifyEmail
Active the middleware verify for the routes in web.php or in controller
You can activate the verification link and verify email
Auth::routes(['verify' => true]);
email_verified_at column.I often use this built-in feature if I need verification users before allowing it to access the application.