I want the user to login only if status field in users table is set to 1. If it is 0 then simply return error stating user account is not active.
So after creating the status field in the table, where can I make the check that the user'status is 1 then only login otherwise throw error.
I tried to find where the default auth check is made but cannot find it anywhere.
You need to simply override
credentials()
which is defined inAuthenticatesUsers.php
. the default login method useAuthenticatesUsers
trait. so go login controller and overwrite like this.