area17 / blast

Storybook for Laravel Blade 🚀
https://dev.to/area17/getting-started-with-blast-storybook-for-laravel-blade-c5c
Apache License 2.0
268 stars 39 forks source link

Route middleware support #51

Closed joecritch closed 2 years ago

joecritch commented 2 years ago

This PR allows the user to specify their own route middleware name, e.g. web (or their own custom blast-specific one), in order to hook into middleware on storybook preview requests.

Example use-case: I found that I needed this in order to use Livewire fetch requests within Storybook, as it was bypassing the CSRF middleware and failing.

While web might have been an acceptable config default, I went with null to be fully non-breaking.

joecritch commented 2 years ago

middleware_group would be a more accurate name. I will close temporarily

johnbacon commented 1 month ago

Was this or anything like it ever included?