Asif
Asif

Reputation: 756

Sentry2 on Laravel find if email exists

Is there a way to find an user by email with sentry 2 on laravel? Sentry::findUserById(1) does find by id I wanted to find by the user email, is there way way?

I've also tried $users = User::all(); but it throws me the following error:

enter image description here

Can anyone explain how I may get user's all info by user's email?

Upvotes: 0

Views: 230

Answers (1)

Droga Mleczna
Droga Mleczna

Reputation: 511

// Find the user using the user email address
$user = Sentry::findUserByLogin('[email protected]');

Upvotes: 1

Related Questions