Laravel Best Practices Rules

[Applies to: /**/*.php] Laravel specific best practices for different modules and features.

Tryboy869 df52ef0 2 files · 900 B Updated

File contents

  • Use Eloquent ORM instead of raw SQL queries when possible.
  • Implement Repository pattern for data access layer.
  • Use Laravel's built-in authentication and authorization features.
  • Utilize Laravel's caching mechanisms for improved performance.
  • Implement job queues for long-running tasks.
  • Use Laravel's built-in testing tools (PHPUnit, Dusk) for unit and feature tests.
  • Implement API versioning for public APIs.
  • Use Laravel's localization features for multi-language support.
  • Implement proper CSRF protection and security measures.
  • Use Laravel Mix for asset compilation.
  • Implement proper database indexing for improved query performance.
  • Use Laravel's built-in pagination features.
  • Implement proper error logging and monitoring.

Tryboy869/dojutsu-for-ai/tree/main/senjutsu/skills/laravel-best-practices-rules commit df52ef0f78

Frequently asked questions

npx skillmds add tryboy869/laravel-best-practices-rules