F
Filament9mo 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
toeknee9mo ago
On the page apply it as a property: protected static string | array $routeMiddleware = [MyMiddleware::class];
MohamedSabil83
MohamedSabil839mo ago
It became $routeMiddleware in V3

Did you find this page helpful?