diff --git a/src/ChildProcess.php b/src/ChildProcess.php index ff80a077..92472fdd 100644 --- a/src/ChildProcess.php +++ b/src/ChildProcess.php @@ -81,6 +81,8 @@ public function artisan(string|array $cmd, string $alias, ?array $env = null, ?b { $cmd = ['artisan', ...(array) $cmd]; + $env = array_merge($_ENV, $env ?? []); + return $this->php($cmd, $alias, env: $env, persistent: $persistent); }