Answers for "how to get session user in laravel"

PHP
2

set session after login with laravel

$user = Auth::User();
    Session::put('user', $user);
    $user=Session::get('user');
    return $user->name;
Posted by: Guest on October-20-2020
2

get session id in laravel

Session::getId();
Posted by: Guest on April-09-2020

Code answers related to "how to get session user in laravel"

Browse Popular Code Answers by Language