You can pass parameters to Laravel middleware classes

You can pass parameters to Laravel middleware classes

🔥 Remember that you can pass parameters to your custom @laravelphp middleware classes

This simple middleware allows me to inject onboarding screens in an Inertia app.

We're writing a book, you can get it for free here.