FilamentF
Filament2y 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];
Was this page helpful?