iserter/laravel-claude-agents/eloquent-best-practices
Claude Code and agent skill by iserter/laravel-claude-agents
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Best practices for Laravel Eloquent ORM including query optimization, relationship management, and avoiding common pitfalls like N+1 queries.
Install
npx vskill@latest install iserter/laravel-claude-agents/eloquent-best-practicesSKILL.md
Eloquent Best Practices
Query Optimization
Always Eager Load Relationships
Select Only Needed Columns
Use Query Scopes
Relationship Best Practices
Define Return Types
Use withCount for Counts
Mass Assignment Protection
Use Casts for Type Safety
Chunking for Large Datasets
Database-Level Operations
Use Model Events Wisely
Common Pitfalls to Avoid
Don't Query in Loops
Don't Forget Indexes
Prevent Lazy Loading in Development
Checklist
- [ ] Relationships eagerly loaded where needed
- [ ] Only selecting required columns
- [ ] Using query scopes for reusability
- [ ] Mass assignment protection configured
- [ ] Appropriate casts defined
- [ ] Indexes on foreign keys and query columns
- [ ] Using database-level operations when possible
- [ ] Chunking for large datasets
- [ ] Model events used appropriately
- [ ] Lazy loading prevented in development
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/eloquent-best-practices/SKILL.md
Popularity
- Repository stars
- 29
- Repository forks
- 7
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/iserter/laravel-claude-agents/eloquent-best-practices)