laravel-clean-architecture

Installation
SKILL.md

Laravel Clean Architecture

Priority: P1 (HIGH)

Workflow: Add Domain Feature

  1. Create domain folderapp/Domains/Order/{Actions,DTOs,Contracts}/.
  2. Define DTO — Create readonly class with typed constructor properties.
  3. Create contract — Define repository interface in Contracts/.
  4. Implement repository — Build Eloquent implementation; bind in AppServiceProvider.
  5. Write Action class — Single-responsibility use-case logic consuming DTO.
  6. Verify bindings — Run php artisan tinker and resolve interface to confirm DI works.

Action + DTO Example

See implementation examples for Action class with DTO and domain structure patterns.

Implementation Guidelines

Domain-Driven Design (DDD)

Installs
1
GitHub Stars
521
First Seen
Jun 18, 2026
laravel-clean-architecture — hoangnguyen0403/agent-skills-standard