From e5a52b3cf236a2ab2f18b316b5cfb3e34ae39f60 Mon Sep 17 00:00:00 2001 From: erikn69 Date: Tue, 25 Apr 2023 09:15:09 -0500 Subject: [PATCH] Fix install command on Laravel 10.x breaking change --- src/Commands/InstallCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/InstallCommand.php b/src/Commands/InstallCommand.php index 0fcddf3..5ed464d 100644 --- a/src/Commands/InstallCommand.php +++ b/src/Commands/InstallCommand.php @@ -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 ));