
Laravel Best Practices
Laravel 13 conventions covering architecture, Eloquent, validation, and security with 31 rules across 7 categories.
- skills.sh installs
- 2.4K
- GitHub stars
- 105
- last updated
- Aug 21, 2026
What it does
- Covers architecture, Eloquent and database, controllers, validation, security, performance, and API design for Laravel 13 applications
- Organizes 31 rules by priority, from CRITICAL architecture and Eloquent guidance down to MEDIUM performance and API design
- Includes rule identifiers such as
eloquent-eager-loading,arch-service-classes, andsec-mass-assignment, plus PHP code samples for controllers, form requests, services, models, and migrations - Designed for developers creating controllers, models, migrations, validation, and services, and for tasks involving Eloquent, database work, or PHP patterns
Install
$ npx -y skills add asyrafhussin/agent-skills --skill laravel-best-practices -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Laravel 13 Best Practices
Comprehensive best practices guide for Laravel 13 applications. Contains 31 rules across 7 categories for building scalable, maintainable Laravel applications.
When to Apply
Reference these guidelines when:
- Creating controllers, models, and services
- Writing migrations and database queries
- Implementing validation and form requests
- Building APIs with Laravel
- Structuring Laravel applications
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Architecture & Structure | CRITICAL | arch- |
| 2 | Eloquent & Database | CRITICAL | eloquent- |
| 3 | Controllers & Routing | HIGH | controller-, ctrl- |
| 4 | Validation & Requests | HIGH | validation-, valid- |
| 5 | Security | HIGH | sec- |
| 6 | Performance | MEDIUM | perf- |
| 7 | API Design | MEDIUM | api- |
Quick Reference
1. Architecture & Structure (CRITICAL)
Details
- Repository
- github.com/asyrafhussin/agent-skills
- Categories
- PHP & Laravel, Backend & APIs
- First seen
- Apr 16, 2026
More from asyrafhussin/agent-skills
All 14- Laravel Inertia React2.1K
- Clean Code Principles1.9K
- Laravel Database Optimization1.1K
- Typescript React Patterns1.1K
- Laravel Owasp Security1.1K
- Tailwind Best Practices1K
- Api Design Patterns1K
- Testing Best Practices975
- Web Design Guidelines970
- Git Workflow907
- State Management849
- Php Best Practices3.9K
- React Vite Best Practices3K
Similar to Laravel Best Practices
More PHP & Laravel
laravelmindrally/skills870 installsExpert guidance for Laravel PHP work covering MVC structure, Eloquent, validation, testing, and performance.
laravel-developmentmindrally/skills959 installsExpert Laravel guidance that applies SOLID principles, PSR-12 style, and Laravel conventions to PHP code.
laravel-patternsaffaan-m/ecc6.7K installsLaravel architecture patterns for controllers, Eloquent, services, queues, and API resources in production apps.
laravel-database-optimizationasyrafhussin/agent-skills1.1K installsPerformance rule set for Laravel 13 covering N+1 queries, indexing, Redis caching, pagination, and transactions.
php-best-practicesasyrafhussin/agent-skills3.9K installsPHP 8.x modern patterns, PSR standards, and SOLID rules for reviewing and auditing PHP code.
eloquent-best-practicesiserter/laravel-claude-agents1.3K installsLaravel Eloquent guidance for avoiding N+1 queries, tuning selects, and structuring models safely.