Middleware and Filament

Apologies if this is in the documentation but I couldn't find it. How would I define middleware for Filament created Resources, etc? Normally I'd add something to web.php but not sure how to do it for the auto generated routes that Filament gives me.

cheers
Solution
you can include custom middleware though in the ->middleware() method on your $panel.
Was this page helpful?