New advertisers: 50% off your first month with code FIRSTMONTHSee slots
asyrafhussin avatar

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
View on GitHub

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, and sec-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 -y

Installs 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

PriorityCategoryImpactPrefix
1Architecture & StructureCRITICALarch-
2Eloquent & DatabaseCRITICALeloquent-
3Controllers & RoutingHIGHcontroller-, ctrl-
4Validation & RequestsHIGHvalidation-, valid-
5SecurityHIGHsec-
6PerformanceMEDIUMperf-
7API DesignMEDIUMapi-

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

Similar to Laravel Best Practices

More PHP & Laravel