diff --git a/src/CoreServiceProvider.php b/src/CoreServiceProvider.php index e2fb201..f7b51ec 100644 --- a/src/CoreServiceProvider.php +++ b/src/CoreServiceProvider.php @@ -59,7 +59,9 @@ public static function setThemePath(string $path): void { $viewPath = 'zeus::themes.' . config('zeus.theme') . '.' . $path; - if (! view()->exists($viewPath . '.home')) { + $folder = resource_path('views/vendor/zeus/themes/' . config('zeus.theme') . '/' . $path); + + if (! is_dir($folder)) { $viewPath = 'zeus::themes.zeus.' . $path; }