Answers for "set session with 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
0

set session in laravel

Session::put('variableName', $value);
Posted by: Guest on February-13-2021
1

set session in laravel

Session::get('variableName');
Posted by: Guest on February-13-2021

Browse Popular Code Answers by Language