Domain primitives
Domain primitives model the Laravel-aware business capability shared across Services. They remain independent of delivery concerns.
Concepts
| Concept | Role |
|---|---|
| Domain | Shared business capability. |
| Model | Eloquent entity. |
| Action | Atomic business operation. |
| Query | Read-only operation. |
| DTO | Readonly transport data. |
| Value Object | Validated primitive. |
| Enum | Closed owned set. |
| Domain Exception | Business-rule violation. |
Comparisons
| Choose between | Decision |
|---|---|
| Model, DTO, Value Object | Persisted identity, transport data, or validated value semantics. |
| Action, Query | Atomic state work or a read-only lookup. |