© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
Wannes

Tenancy + canAccessPanel

Hi! I'm using Filament v3 multi-tenancy and I have 2 panels. But only user A in tenant 1 should have access to the 2 panels.

User A in tenant 2 should only have access to panel 1.

I'm trying to accomplish this via the canAccessPanel() method in the User model, but I can't seem to access Filament::getTenant() in here.

public function canAccessPanel(Panel $panel): bool
{
     // Need to access the team here?
}
public function canAccessPanel(Panel $panel): bool
{
     // Need to access the team here?
}
`

Is there any way to accomplish this?

Kr,
Wannes
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

Tenancy: access tenant in `canAccessPanel` function
FilamentFFilament / ❓┊help
3y ago
canAccessPanel Authenticatable
FilamentFFilament / ❓┊help
3y ago
Configuring canAccessPanel
FilamentFFilament / ❓┊help
3y ago
canAccessPanel Redirection loop
FilamentFFilament / ❓┊help
3mo ago