What problem does it solve?
This Skill provides a comprehensive guide to best practices and patterns for building Laravel 13 applications, ensuring consistent, maintainable architecture.
Core Features & Use Cases
- Laravel 13 Patterns: Covers a wide range of patterns, including attribute-driven models, modular structure, Actions, Services, DTOs, Eloquent best practices, Queues, Caching, API Resources, and Event-driven design.
- Model Attributes: Introduces PHP 8 attribute-driven model configuration in Laravel 13.
- Queue Job Attributes: Explains how to use attributes for queue jobs.
- Console Command Attributes: Demonstrates how to use attributes for console commands.
- Modular/Domain Structure: Provides guidelines for organizing Laravel applications.
- Actions vs Services: Offers guidance on when to use Actions and Services.
- DTOs and Value Objects: Explains the use of DTOs and Value Objects for request data and domain logic.
- Eloquent Best Practices: Offers quick references for Eloquent relationships, performance, model design, and advanced features.
- Form Requests: Describes how to use Form Requests for validation and authorization.
- API Resources: Explains how to create consistent API response envelopes.
- Queues: Provides information on job structures, batching, and unique jobs.
- Events and Listeners: Discusses event handling in Laravel.
- Caching: Covers cache tags, the remember pattern, and model cache invalidation.
- Policies and Gates: Explains how to use Policies and Gates for authorization.
- Pipeline Pattern: Shows how to use the Pipeline pattern in Laravel.
- Service Container: Discusses contextual binding, tagging, and singletons.
- Rate Limiting: Explains how to implement rate limiting.
- Blade Components: Provides an example of creating a Blade component.
- Testing Actions: Offers guidance on testing Actions.
- Architecture Flow: Describes the recommended architecture flow for Laravel applications.
Quick Start
Use the laravel-13-patterns skill to implement a new feature in your Laravel application by following the best practices and patterns outlined in the skill.