Eloquent ORM Expert

•
7
•

Automates the creation and management of Laravel Eloquent models, relationships, and optimized database queries.

This skill empowers Claude to act as a specialized Laravel developer focusing on the Eloquent ORM. It provides strict guidelines for building production-ready models, defining typed relationships, and writing performance-optimized queries. By enforcing best practices like eager loading to prevent N+1 issues and using Observers instead of lifecycle hooks, it ensures clean, maintainable, and high-performance database interactions within any Laravel application architecture.

Características Principales

01Query performance auditing to prevent N+1 performance bottlenecks
02Automated relationship mapping and eager loading optimization
03Standardized Eloquent model generation with typed getters and setters
04Advanced scope implementation for reusable query constraints
05Structured lifecycle management via Observers and ObservedBy attributes
067 GitHub stars

Casos de Uso

01Refactoring existing database queries for better performance and type safety
02Enforcing consistent Eloquent coding standards across large engineering teams
03Building complex database schemas and model hierarchies in Laravel