M
M
Mini MVC2016-11-10 12:58:41
Laravel
Mini MVC, 2016-11-10 12:58:41

How to use login username instead of email in laravel 5.3?

How to use login username instead of email in laravel 5.3?
I read in the documentation but did not understand
https://laravel.com/docs/5.3/authentication#includ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Melikhov, 2016-11-10
@amelihovv

In LoginController.php override the username method as shown in the documentation:

public function username()
{
    return 'username';
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question