F
Filament17mo ago
soand

Conditionally opt out of tenancy

I know this is kind of a weird one, but I'm looking to have all my users scoped to tenants but one or two admin users to not be scoped to be able to administrate all the users of the app. Anyone know how to achieve this?
Solution:
create two separate panel providers, only one with tenancy, and register the same resources and pages to both
Jump to solution
5 Replies
awcodes
awcodes17mo ago
I would think you can authorize admins with a Gate that would allow them access to everything in the system. You may or may not be using the package but the concept is explained well at https://spatie.be/docs/laravel-permission/v5/basic-usage/super-admin
Solution
Dan Harrin
Dan Harrin17mo ago
create two separate panel providers, only one with tenancy, and register the same resources and pages to both
cheesegrits
cheesegrits17mo ago
Man, I love multiple panels. Finding lots of uses for them.
awcodes
awcodes17mo ago
That’s too easy. Stop being so practical.
soand
soandOP17mo ago
Awesome thank you!
Want results from more Discord servers?
Add your server