How to override default login mechanism of Laravel 5.6?
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 in AuthenticatesUsers.php . the default login method use AuthenticatesUsers trait. so go login controller and overwrite like this. protected function credentials(Request