mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:24:03 +00:00
defer tenant route registration in TSP stub
This commit is contained in:
parent
d6d991ced6
commit
4dab0c1870
1 changed files with 6 additions and 4 deletions
|
|
@ -120,10 +120,12 @@ class TenancyServiceProvider extends ServiceProvider
|
||||||
|
|
||||||
protected function mapRoutes()
|
protected function mapRoutes()
|
||||||
{
|
{
|
||||||
if (file_exists(base_path('routes/tenant.php'))) {
|
$this->app->booted(function () {
|
||||||
Route::namespace(static::$controllerNamespace)
|
if (file_exists(base_path('routes/tenant.php'))) {
|
||||||
->group(base_path('routes/tenant.php'));
|
Route::namespace(static::$controllerNamespace)
|
||||||
}
|
->group(base_path('routes/tenant.php'));
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function makeTenancyMiddlewareHighestPriority()
|
protected function makeTenancyMiddlewareHighestPriority()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue