Skip to content

Commit

Permalink
[11.x] Re: Fix issue with missing 'js/' directory in broadcasting ins…
Browse files Browse the repository at this point in the history
…tallation command (#50657)

* [11.x] Re: Fix issue with missing 'js/' directory in broadcasting installation command

* Update BroadcastingInstallCommand.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
alnahian2003 and taylorotwell authored Mar 19, 2024
1 parent 2f5fd4c commit 578c882
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ public function handle()

// Install bootstrapping...
if (! file_exists($echoScriptPath = $this->laravel->resourcePath('js/echo.js'))) {
if (! is_dir($directory = $this->laravel->resourcePath('js'))) {
mkdir($directory, 0755, true);
}

copy(__DIR__.'/stubs/echo-js.stub', $echoScriptPath);
}

Expand Down

0 comments on commit 578c882

Please sign in to comment.