From b3ab480b9e3f8dc349ffded2f5b82a6c1e3b8f2f Mon Sep 17 00:00:00 2001 From: dehbka Date: Sun, 13 Feb 2022 00:06:37 +0200 Subject: [PATCH] [9.x] Fix loading env for serve command --- src/Illuminate/Foundation/Console/ServeCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Console/ServeCommand.php b/src/Illuminate/Foundation/Console/ServeCommand.php index eaa37b28327b..3b0665c87405 100644 --- a/src/Illuminate/Foundation/Console/ServeCommand.php +++ b/src/Illuminate/Foundation/Console/ServeCommand.php @@ -103,7 +103,7 @@ public function handle() protected function startProcess($hasEnvironment) { $process = new Process($this->serverCommand(), public_path(), collect($_ENV)->mapWithKeys(function ($value, $key) use ($hasEnvironment) { - if ($this->option('no-reload') || ! $hasEnvironment) { + if ($this->option('no-reload') || $hasEnvironment) { return [$key => $value]; }