barryvdh / laravel-debugbar

Debugbar for Laravel (Integrates PHP Debug Bar)
MIT License
16.57k stars 1.53k forks source link

Question about the dataset switcher #1592

Closed theupriser closed 3 months ago

theupriser commented 3 months ago

Hello!

I've found that the dataset switcher won't enable by itself. In Laravel 10 I could force it to show by adding the StartSession and ShareErrorsFromSession middleware to the global middleware stack.

However.. Laravel 11 does not like this and will not forward flashed session data anymore.

Is there any way to enable this without tampering with middleware placement?

image

Edit: I solved it by doing this for now.. but I think it's not really meant to be done like this. image

With kind regards,

Rick

barryvdh commented 3 months ago

Can you try https://github.com/barryvdh/laravel-debugbar/pull/1591 ?

barryvdh commented 3 months ago

Please try dev-master for now

theupriser commented 3 months ago

This fixes my issue once and for all! Thanks Barry!