Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel using username instead of email

All we need is add a method in app/Http/Controllers/Auth/LoginController.php:

/**
 * Get the login username to be used by the controller.
 *
 * @return string
 */
public function username()
{
    return 'username';
}
Source by laraveldaily.com #
 
PREVIOUS NEXT
Tagged: #laravel #username #email
ADD COMMENT
Topic
Name
3+4 =