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:Jump to solution
create two separate panel providers, only one with tenancy, and register the same resources and pages to both
5 Replies
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
Defining a Super-Admin | laravel-permission
laravel-permission
Solution
create two separate panel providers, only one with tenancy, and register the same resources and pages to both
Man, I love multiple panels. Finding lots of uses for them.
That’s too easy. Stop being so practical.
Awesome thank you!