From afc04ce965102a2e9d95cfd64f5e4624d8e8d49a Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Thu, 7 Sep 2023 23:14:55 +0300 Subject: [PATCH] fix set view path --- src/CoreServiceProvider.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }