Answers for "getting user email null laravel auth"

PHP
1

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';
}
Posted by: Guest on August-12-2020

Browse Popular Code Answers by Language