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:
Can anyone explain how I may get user's all info by user's email?
// Find the user using the user email address
$user = Sentry::findUserByLogin('[email protected]');