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 93d4e6c commit 3679962Copy full SHA for 3679962
resources/views/index.blade.php
@@ -1,7 +1,12 @@
1
@php
2
function vite_vendor($asset, $vendor)
3
{
4
- $manifest = json_decode(file_get_contents(public_path('vendor/socialblue/laravel-query-adviser/build/manifest.json')), true);
+ $path = public_path('vendor/socialblue/laravel-query-adviser/build/manifest.json');
5
+ if (!file_exists($path)) {
6
+ return $vendor . '/build/' . $asset;
7
+ }
8
+
9
+ $manifest = json_decode(file_get_contents($path), true);
10
return $vendor . '/build/' . $manifest[$asset]['file'];
11
}
12
@endphp
0 commit comments