php artisan make:controller Home/NameController.php
There are many methods in the controller generated by this sentence, and it is really troublesome to delete them every time!
php artisan make:controller Home/NameController.php
There are many methods in the controller generated by this sentence, and it is really troublesome to delete them every time!
<code>php artisan make:controller Home/NameController.php --plain</code>
The correct answer upstairs! 5.1 needs to add --plain, 5.2 uses the command to directly generate an empty controller.