So instead of the $request->session() have you tried using the session() helper itself?
session()->put(...)
Summer Sale! All accounts are 50% off this week.
I have a social network and want to store my own likes in a session since there are many subpages where I need this data and I want to avoid querying the database for that on every page. However you can only save flash data in sessions in Livewire.
The usual Laravel $request->session()->put(...) feature to save data long term in sessions doesn't seem to work in Livewire? So how could I save data long term in sessions or is there an other option or feature?
So instead of the $request->session() have you tried using the session() helper itself?
session()->put(...)
Please or to participate in this conversation.