© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
3 replies
BB

Multiple panels and resource access (routes)

I have two panels, one for admin and another one for member, they both use the same User model.
I've setup the canAccessPanel to allow depending on privilege like this (which works nicely):
public function canAccessPanel(Panel $panel): bool
    {
        if ($panel->getId() === 'admin') {
            return $this->hasPrivilege(UserPrivilege::DASHBOARD);
        }

        if ($panel->getId() === 'member') {
            return $this->hasPrivilege(UserPrivilege::MEMBER);
        }

        return false;
    }
public function canAccessPanel(Panel $panel): bool
    {
        if ($panel->getId() === 'admin') {
            return $this->hasPrivilege(UserPrivilege::DASHBOARD);
        }

        if ($panel->getId() === 'member') {
            return $this->hasPrivilege(UserPrivilege::MEMBER);
        }

        return false;
    }


But I noticed when I created resource for the admin, its accessible from the member panel by the route and it returns blank white page instead 404 or 403.

Is there something I'm missing to prevent it to give page 404 at or something else, I have the panels providers pretty much unchanged other than using subdomains?
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

resource in multiple panels
FilamentFFilament / ❓┊help
2y ago
Reusing same Resource in multiple panels?
FilamentFFilament / ❓┊help
2y ago
Multiple databases and panels
FilamentFFilament / ❓┊help
3y ago
Multiple panels
FilamentFFilament / ❓┊help
4w ago