tomatophp / filament-tenancy

Tenancy multi-database integration for FilamentPHP
https://tomatophp.com/en/open-source/filament-tenancy
MIT License
36 stars 8 forks source link

[Bug] Cross Database Middleware Problem #9

Closed ruelluna closed 1 month ago

ruelluna commented 1 month ago

Say the features table is found only the central database. And the scopes of the features is based on the Tenant model, how do you check it inside a tenant resource?

In one of my tenant resource:

  public static function canViewAny(): bool
  {
      return Feature::active(CRM::class);
  }
linear[bot] commented 1 month ago

TOT-97 Usage with https://filamentphp.com/plugins/3x1io-tomato-tenancy

3x1io commented 1 month ago

[!WARNING]
We have a known problem with route:cache if you find a problem with multi-database connection from your tenant side you may face this problem just use php artisan route:clear and it will be fixed.