What problem does it solve?
This Skill helps developers rapidly implement production-grade Laravel backends by providing best-practice guidance, templates, and workflows for Eloquent models, API resources, queues, authentication, and testing so they can avoid common pitfalls like N+1 queries and untested business logic.
Core Features & Use Cases
- Eloquent Modeling & Relationships: Design models, migrations, relationships, casts, and scopes with eager loading to prevent N+1.
- API Resources & Controllers: Create RESTful controllers and API resources for consistent JSON responses and validation.
- Queues & Background Jobs: Configure jobs, workers, and Horizon for long-running tasks and retry handling.
- Authentication & Security: Implement Sanctum-based auth, validation, and secure configuration practices.
- Testing & Quality: Provide Pest/PHPUnit tests, factory usage, and guidance to reach high coverage.
- Use Case Example: Build a paginated API for a multi-tenant application with related resources, queued processing, and full test coverage.
Quick Start
Create a new resource including an Eloquent model, migration, API resource, controller with validation, a queued job for heavy work, and corresponding tests.