mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 15:54:03 +00:00
better defaults
This commit is contained in:
parent
6c5bde7d07
commit
1d42f33d34
6 changed files with 34 additions and 14 deletions
|
|
@ -238,11 +238,13 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
|
||||
protected function mapRoutes()
|
||||
{
|
||||
if (file_exists(base_path('routes/tenant.php'))) {
|
||||
$this->app->booted(function () {
|
||||
if (file_exists(base_path('routes/tenant.php'))) {
|
||||
RouteFacade::namespace(static::$controllerNamespace)
|
||||
->middleware('tenant')
|
||||
->group(base_path('routes/tenant.php'));
|
||||
}
|
||||
->middleware('tenant')
|
||||
->group(base_path('routes/tenant.php'));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
protected function makeTenancyMiddlewareHighestPriority()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue