laravel-best-practices

Enforce Laravel conventions and guardrails across PHP backend code.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/aarongmx/FacturacionLoop --skill laravel-best-practices-aarongmx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-best-practices
Source: https://github.com/aarongmx/FacturacionLoop/tree/main/.claude/worktrees/agent-aafd0f83/vendor/laravel/boost/.ai/laravel/skill/laravel-best-practices
Command: npx skills add https://github.com/aarongmx/FacturacionLoop --skill laravel-best-practices-aarongmx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Laravel projects often drift into inconsistent patterns, leading to maintenance headaches, reduced security, and longer onboarding. This skill codifies best practices to unify architecture and guardrails across a Laravel codebase.

Core Features & Use Cases

  • Enforces consistent Eloquent relationships, routing conventions, and request validation to reduce bugs.
  • Improves performance and security through vetted caching, query patterns, and error-handling guidance.
  • Provides a scalable blueprint for teams to refactor legacy code and onboard new contributors.

Quick Start

Apply the guide by auditing a Laravel project and implementing the outlined patterns and guardrails.

Frequently Asked Questions about laravel-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are Laravel best practices for structuring controllers and Eloquent models?

Laravel best practices standardize architecture by enforcing proven conventions for controllers, Eloquent relationships, and routing to reduce bugs. Applying these patterns ensures consistent PHP backend code and safer refactoring across your project.

How do I enforce code quality and consistent architecture in a PHP Laravel project?

You enforce Laravel code quality by loading rules that guide automated checks during development. This standardizes patterns across migrations, form requests, policies, jobs, and service classes, ensuring consistent architecture and safer refactoring.

Does this Laravel code quality guide apply to legacy refactoring and team onboarding?

Yes, this Laravel code quality guide provides a scalable blueprint for teams to refactor legacy code and onboard new contributors. It codifies vetted Eloquent and architectural patterns to unify your codebase and resolve maintenance inconsistencies.

What's the best way to standardize request validation and routing conventions in Laravel?

The best way to standardize Laravel routing and validation is by applying codified guardrails to form requests and controllers. This enforces consistent conventions across the codebase, reducing bugs and improving security during development.

Can I apply these Laravel best practices to caching and query optimization?

Yes, these Laravel best practices improve performance and security through vetted caching, query patterns, and error-handling guidance. This ensures your Eloquent database interactions remain efficient and consistent across the application.

Why does my Laravel project drift into inconsistent patterns and maintenance headaches?

Laravel projects drift into inconsistent patterns due to unmanaged architecture and conventions. Codifying best practices unifies backend code structure, improves security, reduces bugs, and provides a scalable blueprint for ongoing maintenance.