I don't know of a single function that allowed for ORM like WHERE statements...
If I were you I'd make a custom loginAttempt() function that suits your needs.
Basically, a function comparing your custom credentials with a typical:
$user = User::whereEmail($email)->wherePassword($password)->whereNotNull("confirmed_at")->first();
if($user) {
Auth::loginUsingId($user->id);
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community