Thats not quite how sessions work in laravel. You could use a cookie, database or cache. What do you need to store?
Jan 23, 2023
8
Level 15
Laravel session
Is there a way to temporary set the expiration of a session using the session helper in Laravel?
Level 102
@codingprogress You could easily just use cache then https://laravel.com/docs/9.x/cache#storing-items-in-the-cache
Cache::put('foobar_' . $user->id, $valu', now()->addMinutes(10));
1 like
Please or to participate in this conversation.