Closed jsilva74 closed 4 years ago
As I understand you're trying to access your system domain, but you have UsesTenantConnection
on your Role/Permission models. That documentation article is meant for tenants to use spatie/laravel-permissions
package.
If you only want to use it for your system domain, change that trait to UsesSystemConnection
and also add it to your User model.
If you want to use that package on both system and tenant connections then you will need to have 2 different models for each Role and Permissions and swap them in config during runtime, preferably a middleware, depending if tenant was identified or not.
You could also try playing with TenantAwareConnection
trait and a single set of models, though I can't guarantee that it will work.
Closing this issue due to inactivity.
If you feel like your issue has not been properly addressed yet, or if you still need more information, please reopen this issue 😄
If you require help with a different issue, please open a new issue.
You can also find Tenancy related help & resources on:
Hi.
Description
In an installation with Spatie Permissions package, getting this error in this scenery:
system
Appreciate any help. Thanks!
Actual behavior
Getting the error
Expected behavior
Get the fallback/main "tenant" showed
Information
tenancy.php config
webserver.php config
Error log