mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 12:54:04 +00:00
Register tenant routes after other SPs are executed (#216)
This commit is contained in:
parent
0616e608aa
commit
e953b18eb3
1 changed files with 7 additions and 5 deletions
|
|
@ -11,10 +11,12 @@ class TenantRouteServiceProvider extends RouteServiceProvider
|
||||||
{
|
{
|
||||||
public function map()
|
public function map()
|
||||||
{
|
{
|
||||||
if (file_exists(base_path('routes/tenant.php'))) {
|
$this->app->booted(function () {
|
||||||
Route::middleware(['web', 'tenancy'])
|
if (file_exists(base_path('routes/tenant.php'))) {
|
||||||
->namespace($this->app['config']['tenancy.tenant_route_namespace'] ?? 'App\Http\Controllers')
|
Route::middleware(['web', 'tenancy'])
|
||||||
->group(base_path('routes/tenant.php'));
|
->namespace($this->app['config']['tenancy.tenant_route_namespace'] ?? 'App\Http\Controllers')
|
||||||
}
|
->group(base_path('routes/tenant.php'));
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue