What problem does it solve?
This Skill provides a comprehensive guide and best practices for building robust and maintainable applications using Laravel 11+, addressing common challenges in modern PHP development.
Core Features & Use Cases
- Structured Project Layout: Understand and implement recommended directory structures for clarity and scalability.
- Service Container & DI: Leverage Laravel's powerful dependency injection for cleaner code.
- Eloquent ORM Best Practices: Master relationships, scopes, accessors, and observers for efficient data management.
- API & Web Routing: Implement best practices for API and web route definitions, including resource controllers and route model binding.
- Middleware & Validation: Utilize middleware pipelines and form requests for robust request handling and validation.
- Queues & Broadcasting: Implement background job processing and real-time features.
- Testing Strategies: Write effective feature and unit tests using Pest or PHPUnit.
- Performance Optimization: Learn techniques to ensure your Laravel applications run efficiently.
Quick Start
Use the laravel-patterns skill to generate a basic structure for a new Laravel 11+ API endpoint, including controller, request, and resource files.