I pasted above to first nearby project with L5.4 and it worked.
string(7) "working"
did you clean cache or somethink? What is your SESSION_DRIVER?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Guys and girls, any assistance will be appreciated. I went over at least 50 "solutions" and none worked. I even made it super simple and still not working and I'm getting NULL.
Route::get('/flash', function() {
session()->flash('itsme', 'working');
return redirect('/flashshow');
});
Route::get('/flashshow', function() {
var_dump(session('itsme'));
});
PS1: May worth to mention that sessions do work. If I use put instead of flash it will work.
I decided to check with the default Kernel and it's working fine - obviously it's the Kernel file. Will have to check why it was modified.
Please or to participate in this conversation.