how to make controller in laravel
snippet in php

laravel create controller

user9227

php artisan make:controller MyController

laravel create resource controller

user6178

php artisan make:controller PhotoController --resource

how to make controller in laravel

user8885

php artisan make:controller ShowProfile

laravel create resource controller

user9172

Route::resource('photos', 'PhotoController');

use resource in laravel 8

user2755

php artisan make:controller PhotoController --resource --model=Photo