How do I assign middleware to a Page or Resource?
I do come across this concept of Filament middlewares many times. Most recently, it is mentioned in the beta docs like this:
Property signature changes
Resource classes and all page classes, including resource pages, custom pages, settings pages, and dashboard pages:
This gives the impression that middlewares can be assigned directly to pages or resources. However, this is not documented anywhere in Filament how to achieve this.
Can someone please point me to the relevant parts of the docs, please?
Property signature changes
Resource classes and all page classes, including resource pages, custom pages, settings pages, and dashboard pages:
$middlewares is now $routeMiddlewareThis gives the impression that middlewares can be assigned directly to pages or resources. However, this is not documented anywhere in Filament how to achieve this.
Can someone please point me to the relevant parts of the docs, please?