diff --git a/src/Http/Controllers/VoyagerController.php b/src/Http/Controllers/VoyagerController.php index 1083d2deb..e7cf3857a 100644 --- a/src/Http/Controllers/VoyagerController.php +++ b/src/Http/Controllers/VoyagerController.php @@ -95,7 +95,7 @@ public function assets(Request $request) abort(404); } - if (File::exists($path)) { + if (File::isFile($path)) { $mime = ''; if (Str::endsWith($path, '.js')) { $mime = 'text/javascript';