diff --git a/routes/tenant.php b/routes/tenant.php index 59d61ac..f76d4bd 100644 --- a/routes/tenant.php +++ b/routes/tenant.php @@ -2,28 +2,17 @@ declare(strict_types=1); -use Illuminate\Support\Facades\Route; -use Stancl\Tenancy\Middleware\InitializeTenancyByDomain; -use Stancl\Tenancy\Middleware\PreventAccessFromCentralDomains; - /* |-------------------------------------------------------------------------- -| Tenant Routes +| Tenant Routes (stancl/tenancy) |-------------------------------------------------------------------------- | -| Here you can register the tenant routes for your application. -| These routes are loaded by the TenantRouteServiceProvider. +| AutoCRM nu folosește Stancl Domain-based tenant resolution. +| Tenant resolution se face prin propriul ResolveTenant middleware +| (slug-based, în Filament panel + bootstrap/app.php). | -| Feel free to customize them however you want. Good luck! +| Acest fișier este intenționat gol — toate rutele tenant trec prin +| Filament panels (TenantPanelProvider) sau prin grupul standard 'web' +| (routes/web.php) care are deja ResolveTenant ca middleware appended. | */ - -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'); - }); -});