Hi @n8dev
You can try this for the flash message.
https://www.itsolutionstuff.com/post/laravel-5-implement-flash-messages-with-exampleexample.html
Or You can try this package
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have been working on a Laravel 8 project ( Laravel Framework 8.82.0 now ) for a long time now but within the last 30 days flash data has essentially stopped working across the full project.
Standard session data still works fine with shopping carts and such all working as normal.
I am doing something as simple as:
return redirect()->back()->with('addtocart', $product->name . ' has been added to your shopping cart');
On the next page there is no trace of this flash data at all. I have dumped all of the session data, used the Toolbar and even tried to use session->flash() but nothing sticks.
There has been numerous updates to the website in the last month or two, but nothing related to session/flash data.
Is there something I am missing here? What should I be looking for in the scenario?
My last option would be to revert to session->put(), but there are literally thousands of references to flash data so spending time bug fixing this is my best option right now.
Please or to participate in this conversation.