eloquent-patterns
CommunityMaster Eloquent patterns for Laravel performance.
AuthorAratKruglik
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides best practices and patterns for working with Eloquent to avoid common performance pitfalls (like N+1 queries), ensure safe and maintainable queries, and promote reusable query logic and proper relationships.
Core Features & Use Cases
- Eager loading strategies to prevent N+1.
- Use of model scopes for reusable query fragments.
- Safe mass assignment and proper relationship declarations.
- Guidance on counts, aggregates, batch operations, soft deletes, and advanced queries.
Quick Start
Refactor a typical N+1 query in Laravel using eager loading and show the before/after results.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: eloquent-patterns Download link: https://github.com/AratKruglik/antigravity-sdlc/archive/main.zip#eloquent-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.