Skip to content

Commit

Permalink
Fixes serve command on Windows (laravel#43437)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro authored and Ken committed Aug 9, 2022
1 parent 884eb1c commit 4cb8e96
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 @@ -215,7 +215,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 4cb8e96

Please sign in to comment.