1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 14:14:04 +00:00

Minor fixes for using the package in an app

This commit is contained in:
Samuel Štancl 2020-05-16 11:56:32 +02:00
parent 1833622170
commit 7a7200fd25
4 changed files with 16 additions and 14 deletions

View file

@ -110,11 +110,9 @@ class TenancyServiceProvider extends ServiceProvider
protected function mapRoutes()
{
$this->app->booted(function () {
if (file_exists(base_path('routes/tenant.php'))) {
Route::namespace($this->app['config']['tenancy.tenant_route_namespace'] ?? 'App\Http\Controllers')
->group(base_path('routes/tenant.php'));
}
});
if (file_exists(base_path('routes/tenant.php'))) {
Route::namespace($this->app['config']['tenancy.tenant_route_namespace'] ?? 'App\Http\Controllers')
->group(base_path('routes/tenant.php'));
}
}
}