Route :: Ressource
php artisan make:controller PhotoController --resource
# in your routes ::
use App\Http\Controllers\PhotoController;
Route::resource('photos', PhotoController::class);
Mushy Macaque