Laravel Architecture Patterns

•
151
•

Implements production-grade architectural patterns for building scalable and maintainable Laravel applications.

This skill provides Claude with comprehensive knowledge of modern Laravel development patterns to ensure high-quality codebases. It focuses on a clean separation of concerns by moving business logic from controllers into dedicated service layers and single-purpose actions. With detailed guidance on advanced Eloquent ORM usage, scoped route-model binding, and structured API resources, this skill helps developers build robust backends. It also covers performance optimizations like eager loading, background jobs, and caching strategies, making it an essential tool for creating professional PHP applications.

主な機能

01Structured data handling via Form Requests and Data Transfer Objects (DTOs)
02Advanced Eloquent modeling with custom casts, query objects, and scopes
03151 GitHub stars
04Secure API design using scoped route-model binding and resource collections
05Implementation of Service and Action patterns to maintain thin controllers
06Best practices for background processing, events, and transactional integrity

ユースケース

01Refactoring monolithic controllers into a maintainable service-oriented architecture
02Optimizing database interactions to prevent N+1 queries and handle complex filtering
03Designing complex API endpoints with consistent response structures and pagination