0076-laravel-routes-best-practices
CommunityKeep Laravel routes clean and maintainable
Software Engineering#code quality#routing#maintainability#laravel#controllers#formrequest#route model binding
AuthorMrJmpl3
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you prevent messy Laravel route files by keeping routing declarations separate from business logic, validation, and database operations.
Core Features & Use Cases
- Routes as declarations: Define HTTP verbs and controller targets without embedding application behavior in route definitions.
- Move logic to controllers and requests: Use controllers for orchestration and FormRequest classes for validation and authorization.
- Organize and scale routing: Apply route groups, naming conventions, route model binding, and resource controllers to stay maintainable as the app grows.
- Use cases: Refactoring an existing codebase with growing routes, standardizing an API/web routing structure, and improving testability and production safety (e.g., route caching).
Quick Start
Ask the assistant to review a set of Laravel routes and rewrite them so they only map requests to controllers while moving validation and business logic into FormRequest and service/controller layers.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: 0076-laravel-routes-best-practices Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0076-laravel-routes-best-practices Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.