Skip to content

Commit

Permalink
Fixed channels route file copy #63
Browse files Browse the repository at this point in the history
  • Loading branch information
slavarazum committed Apr 13, 2024
1 parent 1819b58 commit e8a37b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 6 additions & 4 deletions src/Console/Commands/BroadcastingInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e8a37b4

Please sign in to comment.