What problem does it solve?
This Skill eliminates the common pain of building disorganized, hard-to-maintain Laravel applications that fail to scale as team size and feature requirements grow, by providing standardized, battle-tested architecture patterns.
Core Features & Use Cases
- Standardized Project Layout: Provides a clear, layered directory structure separating HTTP controllers, service/action classes, and Eloquent models to eliminate code sprawl and improve team navigation.
- Robust Data Layer Patterns: Includes best practices for typed Eloquent models, scoped route bindings, N+1 query prevention, and API resource structuring for consistent, secure data handling.
- Production Hardening: Covers implementation patterns for queues, events, caching, database transactions, and environment configuration to build reliable, high-performance Laravel applications.
- Use Case: A team building a multi-tenant SaaS product can use these patterns to enforce consistent access control, avoid cross-tenant data leaks, and scale background job processing without rewriting core application architecture.
Quick Start
Use the laravel-patterns skill to refactor your existing Laravel application's controllers to follow the thin-controller, service-oriented pattern outlined in the skill's guidelines.