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:
$middlewares
is now $routeMiddleware
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?1 Reply
@zepfietje @Dan Harrin it seems no one can explain this part of the doc that I cited above. I'm unable to understand it too. That's why I posted the question. Can you help me understand it, please?