Skip to content

Commit

Permalink
Fix install command on Laravel 10.x breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
erikn69 committed Apr 25, 2023
1 parent 356b19f commit e5a52b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ protected function copyServiceProviderInApp(): self
}

file_put_contents(config_path('app.php'), str_replace(
"Illuminate\\View\ViewServiceProvider::class,",
"Illuminate\\View\ViewServiceProvider::class," . PHP_EOL . " {$namespace}\Providers\\" . $providerName . "::class,",
"{$namespace}\\Providers\\BroadcastServiceProvider::class,",
"{$namespace}\\Providers\\BroadcastServiceProvider::class," . PHP_EOL . " {$namespace}{$class},",
$appConfig
));

Expand Down

0 comments on commit e5a52b3

Please sign in to comment.