laravel resource controller names code example
Example 1: laravel route controller
use App\Http\Controllers\UserController;
Route::get('user/{id}', [UserController::class, 'show']);
Example 2: laravel create resource controller
php artisan make:controller PhotoController --resource --model=Photo
Example 3: Route::resource
Route::resource('photos', PhotoController::class);