laravel:controller-cleanup
CommunityStreamline Laravel controllers.
Authormeistro57
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses controller bloat in Laravel applications by promoting best practices that lead to cleaner, more maintainable, and testable code.
Core Features & Use Cases
- Form Request Integration: Offloads authorization and validation logic from controllers.
- Action/Service Extraction: Encourages the separation of business logic into dedicated classes.
- DTO Usage: Facilitates clean data transfer between layers.
- Controller Specialization: Promotes the use of resource or single-action controllers.
- Use Case: Refactor a large
UserControllerwith complex validation and user creation logic into aStoreUserRequest, aCreateUserAction, and a leaner controller.
Quick Start
Refactor the current controller to use Form Requests for validation and extract business logic into a separate action class.
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:controller-cleanup Download link: https://github.com/meistro57/chat_bridge/archive/main.zip#laravel-controller-cleanup 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 223,000+ vetted skills library on demand.