mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:04:02 +00:00
Only bind UUID generator if one is specified in config (#493)
This commit is contained in:
parent
5fe79fea33
commit
218a34c40e
1 changed files with 3 additions and 1 deletions
|
|
@ -54,7 +54,9 @@ class TenancyServiceProvider extends ServiceProvider
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bind the class in the tenancy.id_generator config to the UniqueIdentifierGenerator abstract.
|
// 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']);
|
$this->app->bind(Contracts\UniqueIdentifierGenerator::class, $this->app['config']['tenancy.id_generator']);
|
||||||
|
}
|
||||||
|
|
||||||
$this->app->singleton(Commands\Migrate::class, function ($app) {
|
$this->app->singleton(Commands\Migrate::class, function ($app) {
|
||||||
return new Commands\Migrate($app['migrator'], $app['events']);
|
return new Commands\Migrate($app['migrator'], $app['events']);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue