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
awcodes14mo ago
Resource routes are handled by Policies
Solution
awcodes
awcodes14mo ago
you can include custom middleware though in the ->middleware() method on your $panel.
ShortlyPortly1964
ShortlyPortly1964OP14mo ago
Perfect - many thanks @awcodes
Want results from more Discord servers?
Add your server