laravel 생성 컨트롤러
php artisan make:controller MyController
laravel8 에서 리소스 사용
php artisan make:controller PhotoController --resource --model=Photo
laravel 에서 컨트롤러를 만드는 방법
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
리소스 컨트롤러 라라벨
Route::resource('photos', PhotoController::class);