17 lines
856 B
Plaintext
17 lines
856 B
Plaintext
---
|
|
description: Laravel specific best practices for different modules and features.
|
|
globs: /**/*.php
|
|
---
|
|
- 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. |