Hi,
as stated in the documentation you can add custom conditions to Auth::attempt
but only for equality checks.
In your case the only option would be to override the login
method in the LoginController
(method is defined in the AuthenticatesUsers
trait) and add your custom check just before sending the login response.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community