set session after login with laravel
snippet in php

set session after login with laravel

user9089

    $user = Auth::User();
    Session::put('user', $user);
    $user=Session::get('user');
    return $user->name;