Answers for "find the id of an user with email laravel"

PHP
6

get id user login laravel

use Auth;
$user_id = Auth::user()->id;
Posted by: Guest on January-06-2021
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

Code answers related to "find the id of an user with email laravel"

Browse Popular Code Answers by Language