laravel-best-practices

Installation
Summary

31 Laravel 13 conventions and best practices across architecture, Eloquent, controllers, validation, security, and API design.

  • Organized into 7 rule categories by priority, from critical architecture and database patterns to medium-impact performance and API design guidance
  • Covers essential patterns including service classes, form requests, Eloquent models, migrations, eager loading, and event-driven architecture
  • Includes 31 specific rules with prefixes (e.g., arch-service-classes, eloquent-eager-loading, validation-form-requests) for easy reference and agent triggering
  • Features complete code examples for controllers, models, migrations, and common patterns like N+1 query prevention and transaction handling
  • Targets Laravel 13.x with PHP 8.3+, including Laravel 13-specific features like queue routing and pgvector semantic search
SKILL.md

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-
Related skills

More from asyrafhussin/agent-skills

Installs
883
GitHub Stars
36
First Seen
Jan 24, 2026