1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 17:54:03 +00:00
This commit is contained in:
Samuel Štancl 2019-08-08 23:23:07 +02:00
parent 85b2274d1d
commit c6169c2be2
4 changed files with 161 additions and 2 deletions

View file

@ -31,7 +31,7 @@ class TenancyServiceProvider extends ServiceProvider
}
$this->publishes([
__DIR__ . '/config/tenancy.php' => config_path('tenancy.php'),
__DIR__ . '/assets/config.php' => config_path('tenancy.php'),
], 'config');
$this->loadRoutesFrom(__DIR__ . '/routes.php');
@ -50,7 +50,7 @@ class TenancyServiceProvider extends ServiceProvider
*/
public function register()
{
$this->mergeConfigFrom(__DIR__ . '/config/tenancy.php', 'tenancy');
$this->mergeConfigFrom(__DIR__ . '/assets/config.php', 'tenancy');
$this->app->bind(StorageDriver::class, $this->app['config']['tenancy.storage_driver']);
$this->app->bind(ServerConfigManager::class, $this->app['config']['tenancy.server.manager']);