<?php use Illuminate\Support\Facades\Route; use App\Http\Controllers\CountryController; Route::controller(CountryController::class)->prefix('country')->group(function () { Route::get('/', 'index'); Route::get('/{id}', 'show'); });