mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 15:54:03 +00:00
Fix #998, centralize config used by BelongsToTenant and HasDomains
This commit is contained in:
parent
942d79cbd7
commit
dd0f03f742
14 changed files with 41 additions and 32 deletions
|
|
@ -54,9 +54,9 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
$this->app->singleton($bootstrapper);
|
||||
}
|
||||
|
||||
// Bind the class in the tenancy.id_generator config to the UniqueIdentifierGenerator abstract.
|
||||
if (! is_null($this->app['config']['tenancy.id_generator'])) {
|
||||
$this->app->bind(Contracts\UniqueIdentifierGenerator::class, $this->app['config']['tenancy.id_generator']);
|
||||
// Bind the class in the tenancy.models.id_generator config to the UniqueIdentifierGenerator abstract.
|
||||
if (! is_null($this->app['config']['tenancy.models.id_generator'])) {
|
||||
$this->app->bind(Contracts\UniqueIdentifierGenerator::class, $this->app['config']['tenancy.models.id_generator']);
|
||||
}
|
||||
|
||||
$this->app->singleton(Commands\Migrate::class, function ($app) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue