1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 14:34:04 +00:00
tenancy/assets/tenant_routes.php.stub

25 lines
755 B
Text

<?php
use Stancl\Tenancy\Middleware\InitializeTenancyByDomain;
/*
|--------------------------------------------------------------------------
| Tenant Routes
|--------------------------------------------------------------------------
|
| Here you can register the tenant routes for your application.
| These routes are loaded by the TenantRouteServiceProvider
| with the namespace configured in your tenancy config.
|
| Feel free to customize them however you want. Good luck!
|
*/
Route::group([
'middleware' => ['web', InitializeTenancyByDomain::class],
'prefix' => '/app',
], function () {
Route::get('/', function () {
return 'This is your multi-tenant application. The id of the current tenant is ' . tenant('id');
});
});