From e9ad8c3ecf26b3bd951b956ca727d0e380d90d01 Mon Sep 17 00:00:00 2001 From: Florian Stascheck Date: Wed, 2 Aug 2023 13:54:41 +0000 Subject: [PATCH] Update ServeCommand.php (#47931) --- src/Illuminate/Foundation/Console/ServeCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Illuminate/Foundation/Console/ServeCommand.php b/src/Illuminate/Foundation/Console/ServeCommand.php index 43c590bac533..bdb2eae8d6b8 100644 --- a/src/Illuminate/Foundation/Console/ServeCommand.php +++ b/src/Illuminate/Foundation/Console/ServeCommand.php @@ -305,6 +305,8 @@ protected function getDateFromLine($line) ? '/^\[\d+]\s\[([a-zA-Z0-9: ]+)\]/' : '/^\[([^\]]+)\]/'; + $line = str_replace(' ', ' ', $line); + preg_match($regex, $line, $matches); return Carbon::createFromFormat('D M d H:i:s Y', $matches[1]);