From 461c8b82aeaae556cfa7cdbb7ca609fd3032a0e4 Mon Sep 17 00:00:00 2001 From: Given Ncube <42301835+SlimGee@users.noreply.github.com> Date: Wed, 9 Jun 2021 13:26:58 +0200 Subject: [PATCH] fix: pass serve options to serve:http command initially if you pass --host or --port were not passed to the end command serve:http, by merging the array the bug is fixed --- src/Commands/ServeCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/ServeCommand.php b/src/Commands/ServeCommand.php index 4f3a603..d57ca84 100644 --- a/src/Commands/ServeCommand.php +++ b/src/Commands/ServeCommand.php @@ -22,7 +22,7 @@ public function handle() $artisanPath = base_path('artisan'); $processes = [ - $httpProcess = new Process([$phpBinaryPath, $artisanPath, 'serve:http'] + $this->serveOptions()), + $httpProcess = new Process(array_merge([$phpBinaryPath, $artisanPath, 'serve:http'], $this->serveOptions())), $socketProcess = new Process([$phpBinaryPath, $artisanPath, 'serve:websockets']), ];