diff --git a/src/Illuminate/Foundation/Console/ServeCommand.php b/src/Illuminate/Foundation/Console/ServeCommand.php index a923ca43235b..f407b6be8358 100644 --- a/src/Illuminate/Foundation/Console/ServeCommand.php +++ b/src/Illuminate/Foundation/Console/ServeCommand.php @@ -46,11 +46,11 @@ public function handle() */ protected function serverCommand() { - return sprintf('%s -S %s:%s %s/server.php', + return sprintf('%s -S %s:%s %s', ProcessUtils::escapeArgument((new PhpExecutableFinder)->find(false)), $this->host(), $this->port(), - ProcessUtils::escapeArgument(base_path()) + ProcessUtils::escapeArgument(base_path('server.php')) ); }