attributes->get('is_admin_domain', true); // Allow access on admin domains or local development if ($isAdminDomain) { return $next($request); } // On service subdomains, redirect to the public workspace page $workspace = $request->attributes->get('workspace', 'main'); // Redirect to the public page for this workspace return redirect()->route('workspace.show', ['workspace' => $workspace]); } }