What problem does it solve?
Many teams struggle to implement maintainable, secure, and production-ready Laravel backends that follow modern PHP 8.2 patterns, correct Eloquent usage, efficient queueing, and comprehensive tests; this Skill provides prescriptive guidance, templates, and constraints to close that gap and reduce architecture mistakes.
Core Features & Use Cases
- Eloquent & Data Modeling: Patterns for models, relationships, casts, scopes, custom casts, and query optimization to avoid N+1 problems.
- APIs, Routing & Resources: Best practices for API resources, controllers, route patterns, form requests, and response shaping for consistent endpoints.
- Queues & Background Processing: Job patterns, batching, rate limiting, Horizon configuration, and failure handling for reliable async work.
- Livewire & UX Integration: Component patterns, file uploads, pagination, and real-time validation for reactive interfaces.
- Testing & CI-readiness: Feature and unit test examples using Pest/PHPUnit, factories, mocking, and guidance to target >85% coverage.
- Real-world Example: Use this Skill to design a blog feature that includes typed Eloquent models, migrations, API endpoints, queued image processing, Livewire admin UI, and full test coverage.
Quick Start
Create a Laravel 10 Post feature with an Eloquent model, migration, controller and API resource, a queued ProcessPost job with Horizon configuration, Livewire admin components, and Pest/PHPUnit tests ensuring eager loading and type-hinted PHP 8.2 code.