© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
Jamie Cee

Route Middleware resource

Just want to know if theres an easier way to do this before I create a separate page for account information.

I have a middleware on my user resource:
    protected static string | array $routeMiddleware = [
        GlobalTwoFactorAuth::class,
    ];
    protected static string | array $routeMiddleware = [
        GlobalTwoFactorAuth::class,
    ];


However, I want a user to be able to edit their own account regardless of this middleware.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Middleware in Panel Route
FilamentFFilament / ❓┊help
3y ago
Return a Resource Route
FilamentFFilament / ❓┊help
3y ago
Resource required route parameter.
FilamentFFilament / ❓┊help
3y ago
Wrong panel route name for resource
FilamentFFilament / ❓┊help
13mo ago