Skip to content
laravel avatar

Laravel Best Practices

Index of Laravel best-practice rule files for code writing, review, and refactoring, covering queries, security, and architecture.

CCM score
63 of 100
install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
10
skills.sh installs
2.8K
GitHub stars
3.7K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers PHP Laravel backend work: controllers, models, migrations, form requests, policies, jobs, scheduled commands, and Eloquent queries
  • Maps 21 concern areas, including query performance, caching, validation, error handling, queues, and scheduling, to individual rule files
  • Requires checking existing sibling code first so established application patterns take precedence over these defaults
  • Designed for Laravel code reviews and refactors that need consistent, minimal changes verified against the installed framework version

Install

$ npx -y skills add laravel/boost --skill laravel-best-practices -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Laravel best practices

Best practices for Laravel, organized as an index of rule files. Each rule file teaches what to do and why. For exact API syntax, verify with search-docs.

Consistency first

Before applying any rule, check what the application already does. Laravel offers several valid approaches. The best choice is the one the codebase already uses, even if another pattern would be better in theory. Inconsistency is worse than a suboptimal pattern.

Check sibling files and related controllers, models, or tests for established patterns. If one exists, follow it. Don't introduce a second way. These rules are defaults for when no pattern exists yet, not overrides.

How to apply

Details

Repository
github.com/laravel/boost
Categories
PHP & Laravel, Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the laravel-best-practices skill do?

laravel-best-practices applies Laravel best practices whenever an agent writes, reviews or refactors Laravel PHP code. It covers controllers, models, migrations, form requests, policies, jobs, scheduled commands and Eloquent queries, plus N+1 queries, caching, authorization and validation.

How do I install the laravel-best-practices skill?

Run npx -y skills add laravel/boost --skill laravel-best-practices -y in your project. After that, laravel-best-practices guides the agent to check existing patterns in your codebase before applying its rules.

Where does laravel-best-practices rank in the PHP and Laravel category?

laravel-best-practices ranks in the top 50 on the PHP and Laravel category page on Claude Marketplaces. Its category neighbours include laravel-specialist, php-pro and laravel-patterns, and laravel-best-practices differs by indexing rule files for each Laravel concern.

Does laravel-best-practices follow the patterns already in my project?

Yes, laravel-best-practices tells the agent to follow the patterns already used in your codebase before applying its defaults. Its rules are fallbacks for when no pattern exists yet, so it avoids introducing a second way of doing the same job.

More from laravel/boost

All 5

Similar to Laravel Best Practices

More PHP & Laravel