Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

split19's avatar

Debugbar has empty old and new flash session data

I have the default installation of Debugbar in Laravel 8. Everything seems to be working normally, except the _flash session data is empty on a normal POST request with a form request class for validation. When validation fails, the data is not there. The _flash data looks like this:

array:2 [
  "old" => []
  "new" => []
]

When I do a dd(old()) I see the data so I know the session is fine. It's just not showing in Debugbar.

Is there something I need to set up for this to work? Any ideas? Thanks.

0 likes
2 replies
s4muel's avatar
s4muel
Best Answer
Level 50

on the righthand side of the debugbar, there is a file icon, click it and you will see recent requests after your form submit that failed validation you should see two:

  • GET - destination of the redirect after failed validation
  • POST - actual form submit
  • ... others from history

click the POST row, the debugbar data updates to show that POST request and you should see what you expect in the _flash session data

1 like
split19's avatar

Wow, great. I do see the data there. Thanks very much.

But why isn't the _flash data in the default Session tab populated? Is there a way to enable it?

Please or to participate in this conversation.