Looking to hire Laravel developers? Try LaraJobs

laravel-code-transformer maintained by vivek-mistry

Description
Modifies your existing controller code for any model with one command.
Author
Last update
2025/12/23 08:25 (dev-main)
License
Downloads
21

Comments
comments powered by Disqus

Laravel Code Transformer

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).

🛠️ Installation

Install the package via Composer:

composer require vivek-mistry/laravel-code-transformer

Execute via

php artisan make:transform-code
Option Description Default
--from= Source controller name (without Controller suffix) Basic
--to= Destination controller name (without Controller suffix) (required)

🧰 Notes

Credits

License

MIT License. See LICENSE for details.