mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:34:04 +00:00
Fix tenants:list
This commit is contained in:
parent
ed200ab733
commit
43d75cdd38
3 changed files with 9 additions and 8 deletions
|
|
@ -18,10 +18,11 @@ use Stancl\Tenancy\Middleware\PreventAccessFromCentralDomains;
|
|||
|
|
||||
*/
|
||||
|
||||
Route::group([
|
||||
'middleware' => ['web', PreventAccessFromCentralDomains::class, InitializeTenancyByDomain::class],
|
||||
'prefix' => '/app',
|
||||
], function () {
|
||||
Route::middleware([
|
||||
'web',
|
||||
InitializeTenancyByDomain::class,
|
||||
PreventAccessFromCentralDomains::class,
|
||||
])->group(function () {
|
||||
Route::get('/', function () {
|
||||
return 'This is your multi-tenant application. The id of the current tenant is ' . tenant('id');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue