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.
Jump to solution
3 Replies
awcodes
awcodes16mo ago
Resource routes are handled by Policies
Solution
awcodes
awcodes16mo ago
you can include custom middleware though in the ->middleware() method on your $panel.
ShortlyPortly1964
ShortlyPortly1964OP16mo ago
Perfect - many thanks @awcodes

Did you find this page helpful?