Good afternoon everyone.
I am starting to work with Laravel 5.8 and I have created a user management using the authentication that Laravel mounts by default.
I have included a new field called state in the database to deactivate users and thus avoid having to delete them.
I know this topic has already been seen but I'm still a little green in the framework and structure that Laravel uses for files.
What I want is to be able to check if a user has the state field active (1) in addition to their username and password before giving access to the control panel.
Can someone guide me which class or classes I should modify and how?
Thanks for everything.
I leave the solution applied to my question for those who need it.
In the LoginController controller I have imported the Facade Auth and implemented the following function: