Skip to content

Commit cdb82eb

Browse files
authored
Fixes serve command on Windows (#43437)
1 parent 09e89cf commit cdb82eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Console/ServeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ protected function canTryAnotherPort()
226226
*/
227227
protected function handleProcessOutput()
228228
{
229-
return fn ($type, $buffer) => str($buffer)->explode(PHP_EOL)->each(function ($line) {
229+
return fn ($type, $buffer) => str($buffer)->explode("\n")->each(function ($line) {
230230
$parts = explode(']', $line);
231231

232232
if (str($line)->contains('Development Server (http')) {

0 commit comments

Comments
 (0)