Replies: 1 comment 8 replies
-
I don't use the spatie/laravel-littlegatekeeper, but I think that creating a custom ServiceProvider that replaces the original one ( @freekmurze or @sebastiandedeyne, exists a better approach? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to get the current tenant in a custom service provider? I am actually using spatie's little gatekeeper and I would like each tenant to be able to have their own username/password instead of defining a single password in the .env file that spans multiple tenants.
I've created a custom service provider that extends the little gatekeeper service provider, but when I try to get the current tenant with app('currentTenant') or using Tenant::current() it throws errors.
How would you access the tenant in a custom service provider or any service provider for that matter?
Beta Was this translation helpful? Give feedback.
All reactions