Laravel Architecture Patterns

•
434
•

Implements production-grade Laravel architecture patterns, including service layers, Eloquent optimizations, and API resource management.

This skill provides Claude with expert-level guidance for building scalable and maintainable Laravel applications. It establishes clear boundaries between controllers, service layers, and single-purpose actions to prevent technical debt and ensure a clean codebase. By enforcing best practices for Eloquent ORM, scoped route-model binding, and standardized API resource structuring, it helps developers build secure, high-performance backends that follow industry-standard enterprise patterns.

主な機能

01Advanced Eloquent patterns including query objects and N+1 prevention
02434 GitHub stars
03Clean controller logic via Form Requests and DTOs
04Scoped route-model binding for multi-tenant security
05Layered architecture with Actions and Service classes
06Standardized API Resources and paginated JSON responses

ユースケース

01Designing secure multi-tenant APIs with parent-child scoped bindings
02Refactoring monolithic 'fat controllers' into testable service-action architectures
03Optimizing database performance through custom casts, eager loading, and query scopes