Architecture
Laravel Domain Generator follows DDD and Clean Architecture.
Request Flow
Responsibilities
| Layer | Responsibility |
|---|---|
| Controller | HTTP |
| DTO | Data Transport |
| Service | Business Logic |
| Repository | Persistence |
| Model | Database |
Why this separation?
- Easier testing
- Lower coupling
- Better maintainability
- Reusable business rules