From f54c13aec48041e7e53b6eef1516e61eb1253603 Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Tue, 14 Apr 2020 21:36:51 +0200 Subject: [PATCH] wip --- app/Commands/ServeCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Commands/ServeCommand.php b/app/Commands/ServeCommand.php index 395e225..6874ead 100644 --- a/app/Commands/ServeCommand.php +++ b/app/Commands/ServeCommand.php @@ -8,13 +8,14 @@ use LaravelZero\Framework\Commands\Command; class ServeCommand extends Command { - protected $signature = 'serve'; + protected $signature = 'serve {host=127.0.0.1}'; protected $description = 'Start the shaft server'; public function handle() { (new Factory()) + ->setHost($this->argument('host')) ->createServer() ->run(); }