We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fba3b98 commit d3376e1Copy full SHA for d3376e1
src/Illuminate/Foundation/Console/BroadcastingInstallCommand.php
@@ -116,6 +116,18 @@ public function handle()
116
trim($bootstrapScript.PHP_EOL.file_get_contents(__DIR__.'/stubs/echo-bootstrap-js.stub')).PHP_EOL,
117
);
118
}
119
+ } elseif (file_exists($appScriptPath = $this->laravel->resourcePath('js/app.js'))) {
120
+ // If no bootstrap.js, try app.js...
121
+ $appScript = file_get_contents(
122
+ $appScriptPath
123
+ );
124
+
125
+ if (! str_contains($appScript, './echo')) {
126
+ file_put_contents(
127
+ $appScriptPath,
128
+ trim($appScript.PHP_EOL.file_get_contents(__DIR__.'/stubs/echo-bootstrap-js.stub')).PHP_EOL,
129
130
+ }
131
132
133
0 commit comments