Skip to content

Commit

Permalink
Fixes serve command on Windows (#43437)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Jul 26, 2022
1 parent 09e89cf commit cdb82eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/ServeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ protected function canTryAnotherPort()
*/
protected function handleProcessOutput()
{
return fn ($type, $buffer) => str($buffer)->explode(PHP_EOL)->each(function ($line) {
return fn ($type, $buffer) => str($buffer)->explode("\n")->each(function ($line) {
$parts = explode(']', $line);

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

0 comments on commit cdb82eb

Please sign in to comment.