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 . 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 r…