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(); }