I created controller which name is Home
but I want rename it with HomeController
. Is it possible in laravel?
Example:
class Home extends Controller { }
I Want to rename it like
class HomeController extends Controller { }
I Want to do it with CLI.
You can't use artisan
, but you can do it manually. But it's not just a simple rename.
You have to:
vendor/composer/autoload_static.php
vendor/composer/autoload_classmap.php
You have to do it manually, there is no any command available to updated controller name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With