Eloquent Model & Query Expert
Generates type-safe Laravel Eloquent models, relationships, and optimized database queries using professional development standards.
This skill transforms Claude into a specialized Laravel Eloquent architect, focusing on high-performance and type-safe database interactions. It automates the creation of models with typed getters and setters, manages complex relationships, and generates scopes for reusable query logic. By enforcing strict patterns like eager loading to prevent N+1 issues and using attribute-based Observers (#[ObservedBy]), it ensures your Laravel backend remains performant, maintainable, and PHPStan-compliant.
Características Principales
01Automated generation of type-safe getters and setters
02Performance-first query building with mandatory eager loading
03Attribute-based Observer registration for cleaner lifecycle hooks
04Comprehensive relationship mapping and query scope definition
05Strict adherence to PHPStan-compatible coding patterns
067 GitHub stars
Casos de Uso
01Building complex database relationships and model structures in Laravel
02Refactoring legacy magic-property models into type-safe structures
03Optimizing database performance by eliminating N+1 query bottlenecks