What problem does it solve?
This Skill helps you write, review, and refactor Laravel code with confidence by applying proven best practices for performance, security, validation, routing, testing, and maintainability. It reduces inconsistent patterns, hidden bugs, and inefficient database behavior in real Laravel projects.
Core Features & Use Cases
- Database and Eloquent guidance: Prevent N+1 queries, choose the right relationship types, use scopes, and keep queries efficient.
- Security and validation checks: Enforce mass-assignment protection, authorization, safe file uploads, and form request validation.
- Architecture and code organization: Improve controller structure, extract actions or services, and follow Laravel conventions consistently.
- Use case: Review a feature implementation before merge and tighten queries, authorization, and validation without changing the app’s established style.
Quick Start
Use this skill to review the Laravel code you are editing and refactor it to match the project’s existing patterns and the most relevant best practices.