What problem does it solve?
This Skill provides comprehensive guidance for building clean, maintainable Laravel 12 applications by applying modern PHP and Laravel conventions such as a service layer, thin controllers, form requests, DTOs, Enums, and robust model patterns. It helps teams reduce complexity and increase testability.
Core Features & Use Cases
- Service Layer Pattern: Move business logic out of controllers into dedicated services.
- Thin Controllers: Controllers handle HTTP concerns and delegate to services.
- Form Requests & Validation: Centralized validation rules and custom messages.
- Eloquent & Patterns: Repositories, DTOs, Enums, and clean model designs.
- Use Case: When building an HR system, implement services for employee management, while keeping controllers slim and easily testable.
Quick Start
Create a new EmployeeController with a thin controller that delegates to EmployeeService to handle creation.