diff --git a/src/BuildProcess/InjectHandlers.php b/src/BuildProcess/InjectHandlers.php index 124ab336..8851b0c0 100644 --- a/src/BuildProcess/InjectHandlers.php +++ b/src/BuildProcess/InjectHandlers.php @@ -25,9 +25,9 @@ public function __invoke() $stubPath = $this->appPath.'/vendor/laravel/vapor-core/stubs'; if (Manifest::shouldSeparateVendor($this->environment)) { - $this->files->copy($stubPath.'/runtime-with-vendor-download.php', $this->appPath.'/runtime.php'); + $this->copyMissing($stubPath.'/runtime-with-vendor-download.php', $this->appPath.'/runtime.php'); } else { - $this->files->copy($stubPath.'/runtime.php', $this->appPath.'/runtime.php'); + $this->copyMissing($stubPath.'/runtime.php', $this->appPath.'/runtime.php'); } $this->copyMissing($stubPath.'/cliRuntime.php', $this->appPath.'/cliRuntime.php');