Laravel architecture

From HoangNguyen0403/agent-skills-standard · View interactive version

Laravel architecture is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Enforce core architectural standards for scalable Laravel applications. Use when structuring controllers, service layers, action classes, Form Requests, or Service Container bindings in Laravel projects.

How to use this skill

Skill file

Laravel Architecture

**Priority: P0 (CRITICAL)**

Structure

See project structure for recommended directory layout.

Workflow

  1. Create Form Request for validation (php artisan make:request StoreUserRequest).
  2. Create Action class with single handle() method for use case.
  3. Inject Action into controller via constructor DI.
  4. Bind interfaces in AppServiceProvider for swappable implementations.

Controller Pattern

See implementation examples for slim controller, action class, and service container binding patterns.

Validation

Anti-Patterns

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.