php artisan make:controller --resource and model command code example
Example 1: create model in laravel command line
# Create a new Drink model.
php artisan make:model Drink
Example 2: use resource in laravel 8
php artisan make:controller PhotoController --resource --model=Photo