diff --git a/routes/web.php b/routes/web.php index 6847bbe..b194127 100644 --- a/routes/web.php +++ b/routes/web.php @@ -5,7 +5,12 @@ use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; Route::get('/', function () { - return view('welcome'); + // On a tenant subdomain → redirect to the tenant panel. + if (app(TenantManager::class)->isResolved()) { + return redirect('/app'); + } + // On the central domain → redirect to admin. + return redirect('/admin'); }); // PWA — manifest dinamic per tenant.