
Laravel Patterns Guide
Guides the agent through Laravel architecture: routing, Eloquent, services, queues, caching and API resources.
- Repository
- affaan-m/ECC
- Stars
- 295,127
- Licence
- MIT
- Files
- 1 file
What it does
When installed, the agent answers and writes Laravel (a PHP web framework) code following production-oriented conventions. It suggests keeping controllers thin, putting logic in services and single-purpose actions, using scoped route bindings to prevent cross-tenant access, eager loading to avoid N+1 queries, and moving slow work to queues and caching. The skill is mostly written guidance with code examples in Spanish; it does not run anything on its own.
Great for
- PHP developers building Laravel web apps or JSON APIs who want consistent structure
- Teams reviewing whether a Laravel codebase follows common layering and routing patterns
- Developers who prefer Spanish-language reference material
Skip it if
- Projects not using Laravel (the patterns are framework-specific, so they add noise elsewhere)
- Non-developers expecting a finished app; the skill only shapes the code the agent writes and the examples are not tested against a specific Laravel version
- Security-critical decisions without review; the examples (e.g. Sanctum auth, scoped bindings) must still be checked against your own authorization requirements
Try asking
- “Design a REST API for projects with apiResource routes and API resources in Laravel”
- “Refactor my fat controller into services and actions following Laravel best practices”
- “Show me how to avoid N+1 queries in my Eloquent order listing”
- “Set up scoped route bindings so users can only access their own account's projects”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 1 original files, the MIT licence and an attribution note.
laravel-patterns.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip laravel-patterns.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip laravel-patterns.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Ask for a specific pattern (e.g. scoped bindings, query objects) rather than general advice to get focused code
- Verify generated code against your Laravel version and your project's existing conventions before merging
- Review authorization logic (policies, scoped bindings) carefully, since the skill only illustrates it
What's inside
- SKILL.md
Redistributed unmodified from affaan-m/ECC under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.