By default, all resource controller actions have a route name;
however, you can override these names by passing a names array
with your desired route names:
use AppHttpControllersPhotoController;
Route::resource('photos', PhotoController::class)->names([
'create' => 'photos.build'
]);