1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 22:54:03 +00:00
config `tenant_route_namespace` is used instead  of
`tenancy.tenant_route_namespace`
This commit is contained in:
franzyke 2019-10-09 11:22:42 +05:30 committed by Samuel Štancl
parent 14843b4291
commit f9c9bf088d

View file

@ -14,7 +14,7 @@ class TenantRouteServiceProvider extends RouteServiceProvider
if (! in_array(request()->getHost(), $this->app['config']['tenancy.exempt_domains'] ?? []) if (! in_array(request()->getHost(), $this->app['config']['tenancy.exempt_domains'] ?? [])
&& file_exists(base_path('routes/tenant.php'))) { && file_exists(base_path('routes/tenant.php'))) {
Route::middleware(['web', 'tenancy']) Route::middleware(['web', 'tenancy'])
->namespace($this->app['config']['tenant_route_namespace'] ?? 'App\Http\Controllers') ->namespace($this->app['config']['tenancy.tenant_route_namespace'] ?? 'App\Http\Controllers')
->group(base_path('routes/tenant.php')); ->group(base_path('routes/tenant.php'));
} }
} }