I added new field ‘approved’ to USERS table. Field is index for now it could be 0 or 1. On user login I want to check this field and if it’s 0 do not User let login. How to do in Laravel 9 breeze?
I added new field ‘approved’ to USERS table. Field is index for now it could be 0 or 1. On user login I want to check this field and if it’s 0 do not User let login. How to do in Laravel 9 breeze?
2
Answers
You should go to LoginRequest and write something like this in authenticate() method
You can add a closure in the
attempt()
method inauthenticate()
method atappHttpRequestsAuthLoginRequest.php
In LoginRequest