Skip to content

Commit 3679962

Browse files
committed
fix: for test
1 parent 93d4e6c commit 3679962

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

resources/views/index.blade.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
@php
22
function vite_vendor($asset, $vendor)
33
{
4-
$manifest = json_decode(file_get_contents(public_path('vendor/socialblue/laravel-query-adviser/build/manifest.json')), true);
4+
$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);
510
return $vendor . '/build/' . $manifest[$asset]['file'];
611
}
712
@endphp

0 commit comments

Comments
 (0)