Skip to main content
Version: v1 (Current)

GxP architecture overview

GxP combines a Laravel backend, Vue/Inertia management and portal surfaces, reusable definitions/installations, and domain APIs. Use this overview to locate a feature’s owner and trace its requests. It describes the reviewed source structure, not a guarantee that every environment enables every module, route or optional service.

For product capabilities and developer workflow selection, start with the ecosystem map, capability map and Developer Tools. Detailed deployment/recovery procedures remain with their operational owners outside the public hub.

1. Overview​

The Dashboard and Developer Hub manage teams/projects, definitions, versions, resources and configuration. Portals render configured content for guests/attendees under their domain, theme, authentication and audience rules. API clients, readers, callbacks and MCP clients use additional entry points; they are not all the same session or request pipeline.

Reusable apps/themes/widgets/tiles/plans compose an experience, while the main application owns its domain models, server permissions, persistence and runtime delivery. A definition or build is not a project installation or an authorized attendee route. A project can have multiple portals, and a default portal must be provisioned by the plan or configured explicitly.

2. Tech stack​

AreaReviewed source
BackendPHP ^8.3, Laravel ^12.0, Octane, Horizon and Eloquent dependencies in Composer metadata.
FrontendVue 3, Inertia, Pinia and Vite; the platform package declares Node 24 and npm 10+ for its toolchain.
DataPostgreSQL-oriented persistence and migrations; cache/session/queue services are separately configured.
Authentication integrationsFortify, Sanctum, Passport and Socialite/SAML integrations exist, but the route and credential determine which one applies.
API implementationShared versioned routes, custom controllers, Orion-based resource controllers, operation/schema documentation and policy/context handling.
SearchScout dependency with configured driver; source fallback is null, not an enabled universal full-text engine.
Real-time/mediaFeature-specific broadcast, messaging, media-session and provider integrations; transport/client/service acceptance is separate.
UI systemsPlatform ModUI wrappers, extracted ModUI, AppUI, and module-specific builders/renderers.
ObservabilityTrace middleware, instrumentation and configured metrics/logging integrations; see monitoring.

Dependency constraints describe source compatibility, not the exact installed production version. At the reviewed source, cache, queue and session config fall back to Redis; broadcasting falls back to log and Scout to null. Environment configuration can differ. Do not infer a running broker, search index, queue worker or provider from a package dependency alone.

3. Request lifecycle​

This is a trace checklist, not a claim that every request invokes every box through a universal service layer. A controller may use Eloquent directly, invoke services, enqueue work or call an external provider. Middleware order, inherited controller middleware, route bindings and model policies can all affect the result before the main action body executes.

Entry points​

RouteServiceProvider registers these families conditionally and with different host/name/group contracts:

SurfaceSource and registration boundary
Dashboard and legacy developer routesroutes/admin/dashboard.php, jetstream.php, developer.php; dashboard/admin host matching and configured dashboard route availability.
Current Developer Hubroutes/developer.php; configured dashboard host, developer.config/developer group, then its own authentication, team and Inertia-context middleware.
System administrationroutes/admin/system.php; configured system host/prefix and web, super-admin, two-factor and system Inertia middleware.
Portal webroutes/portal/app.php; portal group and portal-route availability.
Shared versioned APIroutes/api/v1/routes.php; mounted on API-host prefixes through api and on portal domains through portalApi. The groups are different even when the route source is shared.
WebhooksVersioned webhook-host routes and a separate dashboard /webhook family; inspect the actual registration rather than assuming one signature scheme.
Auth federationSAML/OIDC route files on the configured auth host through their selected web routes.
MCProutes/mcp.php defines its endpoint/discovery/OAuth boundaries; it is not an ordinary anonymous project API.
Health/analytics ingestionExplicit special routes have their own middleware; they do not establish a universal team/project request scope.

Route flags such as dashboard/portal/API/webhook availability and configured domains are deployment-specific. Do not hardcode one host/port diagram as the architecture of every environment. The browser’s named-route map also depends on the owning surface; see frontend routing.

Response contracts​

Management/portal pages can return Inertia props/HTML, but APIs, callbacks, downloads and media/signaling operations have their own response contracts. An Inertia visit is not interchangeable with an HTTP JSON request. Use the actual endpoint schema and handler; generated API metadata is a reference, not authorization or proof that a provider operation is deployed.

4. Middleware, identity and tenant context​

The HTTP kernel defines global middleware and distinct web, dashboard, developer, admin, portal, portalApi, api, webhook and tracking groups. Route/controller middleware adds further requirements. The existence of a group does not mean it is applied to every route whose name sounds related.

  • Dashboard/developer web groups include browser session/cookie/CSRF and context-related behavior; the route’s authentication, team and permission checks still matter.
  • Portal web includes stateful/session handling, portal configuration, attendee timeout, bindings, portal-derived team scope and portal Inertia data.
  • Portal API includes session-capable stateful handling, attendee timeout, rate limiting, portal API config/bindings, field scope and permission-context resolution/enforcement.
  • API-host routes include API config/bindings, rate limiting and token-mode permission-context handling; do not treat a Sanctum statefulness middleware entry as proof that every request uses the same bearer/session identity.
  • The webhook group includes AuthenticateWebhook, a shared-secret header precheck with explicit self-authenticated-route exemptions. Individual routes can have their own signature/identity validation. It is not universally an HMAC validator. The webhook guides (repository reference: /webhooks/security) and each feature’s callback contract are required.

Multi-tenancy and authorization​

Context resolution and permission enforcement are complementary layers. They do not make tenant isolation an automatic invariant of every arbitrary Eloquent query, raw query, queued job or route.

SetTeamScope can resolve a route team, remembered session team or current-user team, checks accessible-team behavior, and sets permission/request context. It passes through when there is no authenticated user. SetTeamScopeByProject resolves the team/project route pair and applies identity/page constraints for supported contexts; its behavior differs from simply reading a global current team. SetTeamScopeByPortal derives team context from the resolved portal configuration.

Review the actual model lookup and action authorization. An ID lookup, cached service result, global scope, frontend visibility rule or saved dependency selector alone is not sufficient evidence that an operation is safely scoped. Test cross-team/project IDs and excluded fields/resources, including non-browser/queue contexts. Use the authorization guide, permission dependencies (repository reference: ../../developer-tools/getting-started/permissions-and-dependencies.md) and service/cache contracts.

5. Key architectural patterns​

Domain services and persistence​

Controllers, services, models, policies, observers, events and jobs are organized around feature ownership, but there is no enforced rule that all controllers are thin or every operation passes through a named service. Follow a real request’s implementation before extending it. Validation, mutation, queued effects and response formatting may live in different classes.

Use explicit backend contracts for resource creation/update/deletion. An observer does not necessarily run for every bulk/query-builder write, and a multi-request UI save is not an atomic transaction across resources. See data models, auditing, events and the module’s acceptance cases.

Events, jobs and external work​

Events/listeners/subscribers and queued jobs decouple selected effects. They do not guarantee that every domain mutation emits a particular event or that every listener broadcasts to attendees. Queue configuration, retries, idempotency, callback authentication and provider availability need their own checks.

Use event architecture, messaging, AI drivers and Gemini Live for actual supported contracts. Do not infer AI availability from a historical worker-cluster status note.

Forms and UI schemas​

Keep these distinct:

  • Relational FormSection/FormField records and ProjectForm configuration.
  • ProjectForm’s schema_version and separately cast root_config, cards_config, elements_config; layoutGraph() exposes them as root/cards/elements.
  • ModUI M1 arrays and M2 editor graphs, with their own frontend converters and parent-model save behavior.
  • Plugin-version settings surfaces, page-instance values and actual installed portal renderers.

Admin/Project/ProjectFormController::show uses layoutGraph() when usesLayoutEngine() is true, and otherwise invokes the relational-form translator (unless a locked template supplies the definition); it is not an automatic translation on every Eloquent read or proof that all form consumers always use one schema. Layout-engine selection also depends on schema/version and supported card types. Use forms/surveys, registration, visual builder and ModUI composition. Test saved/reloaded output in the intended renderer before migrating existing data.

Reusable definitions and runtime delivery​

Apps, themes, widgets, tiles and plans have separate authoring/versioning/installation workflows. Server dependency/resource/permission checks and the host runtime constrain supported behavior; this is not a universal plugin security sandbox. Source/build, published version, project binding, portal content route and attendee authorization must be verified separately.

See developer plugins, app configuration (repository reference: ../../developer-tools/getting-started/app-configuration.md) and project acceptance (repository reference: ../../developer-tools/getting-started/project-acceptance.md).

6. Directory map​

PathStart here for
app/Http/Controllers/Admin, Developer, Portal, ApiOwning request actions and inherited controller contracts.
app/Http/Kernel.php, app/Http/Middleware, app/Providers/RouteServiceProvider.phpActual groups/aliases, route registration/flags, bindings and context.
app/Models, Policies, Services, ObserversPersistence, authorization, feature operations and selected lifecycle side effects.
app/Events, Listeners, JobsEvent and queued work; inspect registration/dispatch sites as well as declarations.
routes/Actual dashboard/developer/portal/API/webhook/MCP/auth definitions.
resources/js/Dashboard, Developer, PortalSurface-specific entry points/pages/runtime code where present.
resources/js/Components/Mod, Composables, Store, ServicesPlatform UI wrappers, builders, state, frontend services and routing helpers.
database/migrations, factories and seedersCurrent persistence evolution and controlled fixture setup.
tests, testing, storiesPHP/JavaScript suites, additional test conventions and component examples.
services/, package directories and deployment configurationFeature services/integrations; directory presence is not deployed health or availability.

Avoid fixed class/table counts or assuming every frontend page lives under resources/js/Pages. Use the actual repository layout and owning test/configuration files.

7. Runtime and infrastructure boundaries​

The local platform workflow uses containers and configured application, database/cache/queue and frontend tooling. Deployed environments may use different topology, domains, ports, managed services and optional feature services. Use local setup (repository reference: ../../developer-tools/getting-started/local-dev-setup.md) for supported workstation commands and keep detailed deployment/recovery runbooks separate.

Long-running application/worker processes make request/job context and configuration lifecycle important. Inspect the current service bindings, context reset, cache keys and worker/job boundaries before storing request-specific state. A selected unit test is not proof of cross-request isolation in a deployed long-running server.

Queue workers and application handlers are separate execution contexts. A successful HTTP response can precede queued work, provider processing or callback receipt. Verify persisted state and downstream completion rather than treating a success toast or dispatched job as final delivery. Debug with the module’s correlation/trace/audit evidence and configured logs; do not put credentials or private attendee payloads into public troubleshooting output.

8. Source inventory and acceptance​

This overview is source-oriented rather than a production topology inventory. For a changed feature, trace:

  1. Host/route flags and the exact route/controller middleware.
  2. Identity, team/project/page/resource bindings and applicable permission/policy checks.
  3. Validation, persistence model, transaction/cache/observer behavior and the actual response shape.
  4. Queued/event/provider/callback work and its retry/idempotency boundaries.
  5. Frontend model/render/save/runtime integration and installed version.
  6. Allowed/denied and cross-scope cases, malformed input, persistence reload and real output delivery.

Use the current testing guide and module acceptance steps. Local source checks, generated API specs and a successful docs build do not certify deployment configuration, all authorization paths or every module end to end.

9. Further reading​

Reviewed platform source commit 3b48eb675f7c8e3c4f0b87d0cd613fa7fb371093. The review covers the documented entry-point, configuration, schema and responsibility claims; detailed module guides and environment checks retain their own scopes.