Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to apply middleware to a custom page? - Filament
F
Filament
•
2y ago
•
4 replies
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
=
[
M
y
M
i
d
d
l
e
w
a
r
e
:
:class
]
;
Jump to solution
Filament
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to pass parameter to custom middleware?
F
Filament / ❓┊help
2y ago
How to custom page form
F
Filament / ❓┊help
3y ago
how to create custom page
F
Filament / ❓┊help
3y ago
How to create custom page
F
Filament / ❓┊help
3y ago