In the new Larevel you had to specify which routes you would like to be included for the resource by passing an argument to the route definition like so:
Route::resource('photo', PhotoController::class, ['only' => [ 'index', 'show' ]]);