A developer-friendly Artisan command that allows you to quickly clone and transform any CRUD controller in your Laravel project — without using external packages.
It copies an existing controller (e.g., BasicController, CategoryController) and automatically replaces all class names, variable names, and related references with your new model name (e.g., Service, Product).
Install the package via Composer:
composer require vivek-mistry/laravel-code-transformerphp artisan make:transform-code| Option | Description | Default |
|---|---|---|
--from= |
Source controller name (without Controller suffix) |
Basic |
--to= |
Destination controller name (without Controller suffix) |
(required) |
🧰 Notes
- Ideal for repetitive CRUD scaffolding in Laravel projects.
- Works for any existing controller in app/Http/Controllers/.
- Prompts before overwriting existing files.
- Fully local — no external package required.
- Vivek Mistry - Project creator and maintainer
MIT License. See LICENSE for details.