Support the ongoing development of Laravel.io →
Authentication
Last updated 2 years ago.
0

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);
}
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

LimeBlast limeblast Joined 23 Dec 2013

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.