controller

Generate a CRUD controller scaffold for a CatchAdmin Laravel module.

928|137|Updated Jan 6, 2020
One-click install
npx skills add https://github.com/JaguarJack/catch-admin --skill controller
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: controller
Source: https://github.com/JaguarJack/catch-admin/tree/main/.claude/skills/04-controller
Command: npx skills add https://github.com/JaguarJack/catch-admin --skill controller

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the repetitive task of writing boilerplate CRUD controllers for CatchAdmin modules, enabling faster backend development and fewer boilerplate errors.

Core Features & Use Cases

  • Scaffold a full CRUD controller (index, store, show, update, destroy) following CatchAdmin conventions for a given Module.
  • Integrate with Module-specific Requests, Model, and Import classes to ensure consistent validation and import workflows.
  • Include enable, export, and import methods to align with the project's administration workflows.
  • Generate the controller file at Modules/{Module}/Http/Controllers/{Model}Controller.php with standard methods and docblocks.

Quick Start

Provide the Module and Model names to generate a new controller. For example, specify Module=User and Model=User to produce Modules/User/Http/Controllers/UserController.php.

Frequently Asked Questions about controller

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a CRUD controller for a Laravel CatchAdmin module?▼

Provide your Module and Model names to generate a CRUD controller scaffold. The Skill creates a controller file at Modules/{Module}/Http/Controllers/{Model}Controller.php with index, store, show, update, destroy, enable, export, and import methods following CatchAdmin conventions.

What does a generated CatchAdmin controller include?▼

The generated controller includes standard CRUD methods (index, store, show, update, destroy), plus enable, export, and import workflows. It integrates with Module-specific Request validation classes, Model instances, and Import handlers to maintain consistency with existing patterns.

Can I use this controller generator with existing Laravel modules?▼

Yes. The controller scaffold follows CatchAdmin module structure and integrates with your existing {Module}\Http\Requests\{Model}Request validation, {Model} model, and {Model}Import classes, ensuring alignment with your project's established patterns.

Does this Skill reduce boilerplate code when building CatchAdmin backends?▼

Yes. It automates repetitive CRUD controller scaffolding, eliminating boilerplate errors and accelerating backend development by generating standardized controller files with complete method signatures and docblocks.

What's the fastest way to set up a controller for a new CatchAdmin module?▼

Specify the Module and Model names—for example, Module=User and Model=User—and the Skill generates a complete, ready-to-use controller scaffold at the correct module path with all required CRUD and administration methods.