laravel-best-practices

安装量: 2.6K
排名: #8432

安装

npx skills add https://github.com/laravel/boost --skill laravel-best-practices

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 Check the changed files, nearby code, project configuration, and relevant tests for established patterns. Deviate only for a correctness or security defect, and call the deviation out. Map every affected concern to the rule index below. Read each mapped rule file before editing. Skip unrelated rule files. Make the smallest coherent change. Keep the application's architecture and naming instead of introducing a second pattern for the same job. Verify version-sensitive Laravel APIs for the installed version with search-docs , or inspect the installed framework when search-docs is unavailable. Run the narrowest relevant tests first, then the project's formatting and static-analysis checks when the change warrants them. Re-read the diff against every mapped rule before finishing. Show more Installs 2.4K Repository laravel/boost GitHub Stars 3.7K First Seen Mar 22, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Pass

← 返回排行榜