mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:14:04 +00:00
[1.8.0] Custom id scheme (#108)
* Add UniqueIdentifierGenerators * Apply fixes from StyleCI
This commit is contained in:
parent
787063ed73
commit
f590e2ce2a
5 changed files with 48 additions and 3 deletions
|
|
@ -125,7 +125,9 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
$this->app->bind(ServerConfigManager::class, $this->app['config']['tenancy.server.manager']);
|
||||
$this->app->singleton(DatabaseManager::class);
|
||||
$this->app->singleton(TenantManager::class, function ($app) {
|
||||
return new TenantManager($app, $app[StorageDriver::class], $app[DatabaseManager::class]);
|
||||
return new TenantManager(
|
||||
$app, $app[StorageDriver::class], $app[DatabaseManager::class], $app[$app['config']['tenancy.unique_id_generator']]
|
||||
);
|
||||
});
|
||||
|
||||
$this->app->singleton(Migrate::class, function ($app) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue