diff --git a/composer.json b/composer.json index 48954f6..f5c978d 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "laravel/pint": "^1.14", "m6web/redis-mock": "v5.6", "nunomaduro/collision": "^7.10|^8.1", - "nunomaduro/larastan": "^2.9", + "larastan/larastan": "^2.9", "orchestra/testbench": "^8.14|^9.0", "pestphp/pest": "^v2.34", "pestphp/pest-plugin-laravel": "^2.3.0", diff --git a/src/Console/Commands/BroadcastingInstallCommand.php b/src/Console/Commands/BroadcastingInstallCommand.php index 955fbe6..53fe8ad 100644 --- a/src/Console/Commands/BroadcastingInstallCommand.php +++ b/src/Console/Commands/BroadcastingInstallCommand.php @@ -47,9 +47,11 @@ public function handle(): int $relativeBroadcastingRoutesStub = 'laravel/framework/src/Illuminate/Foundation/Console/stubs/broadcasting-routes.stub'; - if (file_exists(__DIR__.'/../../../../'.$relativeBroadcastingRoutesStub)) { - File::copy(__DIR__.'/../../../stubs/broadcasting-routes.stub', - $broadcastingRoutesPath); + if (file_exists(__DIR__.'/../../../../../'.$relativeBroadcastingRoutesStub)) { + File::copy( + __DIR__.'/../../../../../'.$relativeBroadcastingRoutesStub, + $broadcastingRoutesPath + ); } else { File::copy(__DIR__.'/../../../vendor/'.$relativeBroadcastingRoutesStub, $broadcastingRoutesPath); @@ -161,7 +163,7 @@ protected function askToStarRepository() { if (! confirm( 'Star Wave repo on GitHub during installation?', - default: true, + default: ! $this->option('no-interaction'), hint: 'Your yellow star contributes to the package development ⭐' )) { return;