F
Filament8mo 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
toeknee8mo ago
On the page apply it as a property: protected static string | array $routeMiddleware = [MyMiddleware::class];
MohamedSabil83
MohamedSabil838mo ago
It became $routeMiddleware in V3
Want results from more Discord servers?
Add your server