laravel 는 이동과 관제사를 가진 모형을 만듭니다
php artisan make:model Todo -mcr
laravel create resource controller
php artisan make:controller PhotoController --resource --model=Photo
laravel create resource controller
php artisan make:controller PhotoController --resource
하나의 명령으로 모델 컨트롤러 마이그레이션 팩토리 laravel 만들기
# to make only Model Class
php artisan make:model Customer
# to make resource controller
php artisan make:controller CustomersController --resource
# make controller for already existing Model Class (binded to model)
php artisan make:controller CustomersController --model=Customer
# to make model, migration and controller and factory all in one command
php artisan make:model Modelname -crmf
리소스 컨트롤러 라라벨
Route::resource('photos', PhotoController::class);
laravel 에서 리소스 컨트롤러를 만드는 방법
Resource Controller:This controller will create all CRUD methods
php artisan make:controller nameOfController --resource