making controller in laravel code example
Example 1: how to make controller in laravel
php artisan make:controller ShowProfile
Example 2: use resource in laravel 8
php artisan make:controller PhotoController --resource --model=Photo
php artisan make:controller ShowProfile
php artisan make:controller PhotoController --resource --model=Photo