1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 14:34:04 +00:00

Only bind UUID generator if one is specified in config

This commit is contained in:
domkrm 2020-09-15 22:09:15 +02:00
parent 5fe79fea33
commit d99d79ac21

View file

@ -54,7 +54,9 @@ class TenancyServiceProvider extends ServiceProvider
}
// 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->singleton(Commands\Migrate::class, function ($app) {
return new Commands\Migrate($app['migrator'], $app['events']);