I want to add extra conditions to the authentication query in addition to the user's e-mail and password in my Laravel project
I read this on the officials laravel documentation. https://laravel.com/docs/5.6/authentication
Specifying Additional Conditions If you wish, you may also add extra conditions to the authentication query in addition to the user's e-mail and password. For example, we may verify that user is marked as "active":
if (Auth::attempt(['email' => $email, 'password' => $password, 'active' => 1])) { // The user is active, not suspended, and exists. }
Where can I find this method?