What problem does it solve?
This Skill provides expert guidance on advanced Laravel Eloquent techniques to address complex domain modeling, performance optimization, and ORM features beyond simple CRUD operations.
Core Features & Use Cases
- Advanced Eloquent Architecture: Deep dive into Eloquent's ORM, Data Mapper Hybrid, Query Builder, and Persistence Layer for domain-driven model design.
- Performance Optimization: Techniques to prevent N+1 queries, implement eager loading constraints, and use selective columns.
- Model Design: Explore DTO patterns, value objects, rich domain models, and repository alternatives for cleaner, more maintainable code.
- Advanced Features: Learn about global and local scopes, custom builders, query macros, cast classes, encrypted casts, enums, model events, observers, and domain events.
Quick Start
Use the laravel-eloquent skill to enhance your Laravel application with advanced Eloquent features and optimize your model relationships and queries.