src/Serve.php
public function handle() {

    $host = $this->input->getOption('host');

    $port = $this->input->getOption('port');

    $base = ProcessUtils::escapeArgument(__DIR__);

    $binary = ProcessUtils::escapeArgument((new PhpExecutableFinder)->find(false));

    $docroot = $this->laravel->basePath() . '/public';

    $this->info("Lumen development server started on http://{$host}:{$port}/");

    if (defined('HHVM_VERSION')) {
      if (version_compare(HHVM_VERSION, '3.8.0') >= 0) {
        passthru("{$binary} -m server -v Server.Type=proxygen -v Server.SourceRoot={$base}/ -v Server.IncludeSearchPaths.docroot={$docroot} -v Server.IP={$host} -v Server.Port={$port} -v Server.DefaultDocument=server.php -v Server.ErrorDocument404=server.php");
      }
      else {
        throw new Exception("HHVM's built-in server requires HHVM >= 3.8.0.");
      }
    }
    else {
      passthru("{$binary} -S {$host}:{$port} -t '{$docroot}' {$base}/server.php");
    }
  }
public function handle() {

    $host = $this->input->getOption('host');

    $port = $this->input->getOption('port');

    $base = ProcessUtils::escapeArgument(__DIR__);

    $binary = ProcessUtils::escapeArgument((new PhpExecutableFinder)->find(false));

    $docroot = $this->laravel->basePath() . '/public';

    $this->info("Lumen development server started on http://{$host}:{$port}/");

    if (defined('HHVM_VERSION')) {
      if (version_compare(HHVM_VERSION, '3.8.0') >= 0) {
        passthru("{$binary} -m server -v Server.Type=proxygen -v Server.SourceRoot={$base}/ -v Server.IncludeSearchPaths.docroot={$docroot} -v Server.IP={$host} -v Server.Port={$port} -v Server.DefaultDocument=server.php -v Server.ErrorDocument404=server.php");
      }
      else {
        throw new Exception("HHVM's built-in server requires HHVM >= 3.8.0.");
      }
    }
    else {
      passthru("{$binary} -S {$host}:{$port} -t '{$docroot}' {$base}/server.php");
    }
  }
Execute the console command.

@return void

@throws \Exception