2 min readCalm pace · scan the outline anytime

Laravel adapter

Laravel 13 host mapping for Modular Hexagonal DDD — Eloquent, providers, optional Filament, Pint, Pest arch tests.

Laravel adapter

HostLaravel 13.x (PHP ≥ 8.3)
Researched2026-08
CoreThis site — 1.0.0-draft
One-shot apply/apply/laravel.full.md

Laravel is a host, not Core. Prefer the one-shot for agent bootstrap. HTML entry: /laravel.

What maps where (Laravel 13)

Core conceptLaravel 13 place
Module rootapp/Modules/{Module}/ (PSR-4)
Shared kernelapp/Shared/
Composition rootModule Application/Providers/*ServiceProvider.php registered in bootstrap/providers.php
PersistenceInfrastructure/Persistence/Eloquent/
ACL adapterInfrastructure/ExternalServices/…AclAdapter.php
Event listenerQueued Infra listener / job → inbound Use Case
UIControllers, Form Requests; optional Filament under UI/Filament/

Laravel 13 continues the slim app structure (bootstrap/app.php, optional install:api). Framework helpers and new first-party features must not enter Domain/Use Cases — ports only.

Topic pages

  1. Persistence (Eloquent)
  2. Composition root
  3. Cross-module bridges
  4. UI delivery
  5. Filament UI (optional admin)
  6. Tooling
  7. Migrations

Design test

If the peer module is deleted and replaced by HTTP, does Application/Domain still compile?

Modular Hexagonal Domain-Driven Design
Core 1.0.0-draft