From 3aaead19cf82aebafb5f415190afb4484f8ed52f Mon Sep 17 00:00:00 2001 From: Vincent Klaiber Date: Thu, 1 Mar 2018 14:39:01 +0100 Subject: [PATCH] Update serve command path (#23348) --- src/Illuminate/Foundation/Console/ServeCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')) ); }