laravel创建控制器
php artisan make:controller MyController
使用控制器laravel创建模型
php artisan make:model Customer
php artisan make:controller CustomersController --resource
如何在laravel中创建controller
Simple controller:
php artisan make:controller nameOfController
Want to create controller in a folder? use it like this:
php artisan make:controller NameOfFolder/nameOfController
Resource Controller:This controller will create all CRUD methods
php artisan make:controller nameOfController --resource
laravel make:action
composer require lorisleiva/laravel-actions