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 a2084fa commit 1a542feCopy full SHA for 1a542fe
src/Publiux/laravelcdn/CdnFacade.php
@@ -148,12 +148,12 @@ public function mix($path)
148
if (is_null($manifest)) {
149
$manifest = json_decode(file_get_contents(public_path('mix-manifest.json')), true);
150
}
151
- if (isset($manifest[$path])) {
152
- return $this->generateUrl($manifest[$path], 'public/');
153
- }
154
if (isset($manifest['/' . $path])) {
155
return $this->generateUrl($manifest['/' . $path], 'public/');
156
+ if (isset($manifest[$path])) {
+ return $this->generateUrl($manifest[$path], 'public/');
+ }
157
throw new \InvalidArgumentException("File {$path} not defined in asset manifest.");
158
159
0 commit comments