Level 1
Where are storing this ? IS it inside a controller ?
//storing the session using the following
session(['history' => time()]);
// retrieving the data using the following
echo session('history');
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
My session data is not getting stored successfully. I've pretty much tried all possibilities around the internet that I was able to come across, can someone please suggest?
//storing the session using the following
session(['history' => time()]);
// retrieving the data using the following
echo session('history');
Am I missing anything here please?
Please or to participate in this conversation.