Answers for "laravel 8 set session variable on login"

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
6

session variable in laravel

$request->session()->put('key','value');
Posted by: Guest on April-18-2020

Code answers related to "laravel 8 set session variable on login"

Browse Popular Code Answers by Language