Skip to content

Commit 578c882

Browse files
[11.x] Re: Fix issue with missing 'js/' directory in broadcasting installation 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]>
1 parent 2f5fd4c commit 578c882

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Foundation/Console/BroadcastingInstallCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ public function handle()
5353

5454
// Install bootstrapping...
5555
if (! file_exists($echoScriptPath = $this->laravel->resourcePath('js/echo.js'))) {
56+
if (! is_dir($directory = $this->laravel->resourcePath('js'))) {
57+
mkdir($directory, 0755, true);
58+
}
59+
5660
copy(__DIR__.'/stubs/echo-js.stub', $echoScriptPath);
5761
}
5862

0 commit comments

Comments
 (0)