laravel:routes-best-practices
CommunityClean Laravel routes, focused on mapping.
Authormeistro57
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the common issue of bloating Laravel route files with business logic, validation, and database operations, leading to unmaintainable code.
Core Features & Use Cases
- Route Definition Best Practices: Demonstrates how to keep routes concise, focusing solely on mapping requests to controllers.
- Controller Implementation Guidance: Shows how to move logic into controllers and dedicated services.
- Route Organization: Provides strategies for structuring route files (web.php, api.php, admin.php) for better maintainability.
- Use Case: Refactor a messy
routes/web.phpfile to ensure all complex logic is handled within controllers and form requests, making the application easier to understand and extend.
Quick Start
Apply the laravel:routes-best-practices skill to refactor the provided route definitions into clean, controller-focused mappings.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: laravel:routes-best-practices Download link: https://github.com/meistro57/chat_bridge/archive/main.zip#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.