I am using default Eloquent authentication driver in my Laravel 5 application. I want to allow user to login with username or mobile number as well for those who have entered these two. Is there any way to include it without creating manual authentication?
相关问题
- java client program to send digest authentication
- PHP persistent login - Do i reissue a cookie after
- How to execute MYSQL query in laravel?
- How to handle “App is temporarily blocked from log
- How can I add condition on mail notification larav
相关文章
- User.Identity.IsAuthenticated vs WebSecurity.IsAut
- Laravel 5 input old is empty
- SwiftUI - Vertical Centering Content inside Scroll
- Override UserManager in django
- Laravel dusk not working .env.dusk.local
- Your application has authenticated using end user
- Read a .csv file into an array in Laravel
- Laravel Impossible to Create Root Directory
I found this discussion on laracasts: https://laracasts.com/discuss/channels/general-discussion/log-in-with-username-or-email-in-laravel-5
It allows the user to enter his username or his email. Laravel checks the field if it is an email or an username (by validating it) and depending on what it is it calls the
$auth->attempt()
function with the correct field.The same thing should be applicable for your username or mobilenumber-problem.