mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 11:14:03 +00:00
Moves config to service provider
This commit is contained in:
parent
b4145374fe
commit
07f5064db4
1 changed files with 3 additions and 1 deletions
|
|
@ -110,7 +110,9 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
__DIR__ . '/../assets/TenancyServiceProvider.stub.php' => app_path('Providers/TenancyServiceProvider.php'),
|
||||
], 'providers');
|
||||
|
||||
$this->loadRoutesFrom(__DIR__ . '/../assets/routes.php');
|
||||
if (config('tenancy.routes', true)) {
|
||||
$this->loadRoutesFrom(__DIR__ . '/../assets/routes.php');
|
||||
}
|
||||
|
||||
$this->app->singleton('globalUrl', function ($app) {
|
||||
if ($app->bound(FilesystemTenancyBootstrapper::class)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue