F
Filament3mo ago
Fahd

How to apply middleware to a custom page?

In web.php against the route I am adding a middleware but it is not working.
Solution:
On the page apply it as a property: protected static string | array $routeMiddleware = [MyMiddleware::class];...
Jump to solution
2 Replies
Solution
toeknee
toeknee3mo ago
On the page apply it as a property: protected static string | array $routeMiddleware = [MyMiddleware::class];
MohamedSabil83
MohamedSabil833mo ago
It became $routeMiddleware in V3