laravel-clean-architecture
Installation
SKILL.md
Laravel Clean Architecture
Priority: P1 (HIGH)
Workflow: Add Domain Feature
- Create domain folder —
app/Domains/Order/{Actions,DTOs,Contracts}/. - Define DTO — Create
readonly classwith typed constructor properties. - Create contract — Define repository interface in
Contracts/. - Implement repository — Build Eloquent implementation; bind in
AppServiceProvider. - Write Action class — Single-responsibility use-case logic consuming DTO.
- Verify bindings — Run
php artisan tinkerand resolve interface to confirm DI works.
Action + DTO Example
See implementation examples for Action class with DTO and domain structure patterns.