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

[2.2.0] Universal routes (#210)

* Universal routes

* Fix bugs

* Add universal MW group
This commit is contained in:
Samuel Štancl 2019-10-30 15:50:00 +01:00 committed by GitHub
parent 518ac4947c
commit ab04ef025b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 5 deletions

View file

@ -92,6 +92,8 @@ class TenancyServiceProvider extends ServiceProvider
Middleware\PreventAccessFromTenantDomains::class,
]);
Route::middlewareGroup('universal', []);
$this->loadRoutesFrom(__DIR__ . '/routes.php');
$this->app->singleton('globalUrl', function ($app) {