input->getOption('host'); $port = $this->input->getOption('port'); $base = $this->laravel->basePath(); $this->info("Lumen development server started on http://{$host}:{$port}/"); passthru('"' . PHP_BINARY . '"' . " -S {$host}:{$port} -t \"{$base}/public\""); } /** * Get the console command options. * * @return array */ protected function getOptions() { $url = env('APP_URL'); return [ [ 'host', null, InputOption::VALUE_OPTIONAL, 'The host address to serve the application on.', parse_url($url, PHP_URL_HOST) ], [ 'port', null, InputOption::VALUE_OPTIONAL, 'The port to serve the application on.', parse_url($url, PHP_URL_PORT) ], ]; } }