From be08dcc2bfbfcf974818f0f7f22bcc5a840e8fb7 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Thu, 19 Sep 2024 14:06:08 +0300 Subject: [PATCH] Update PhyreBlade.php --- web/app/PhyreBlade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/app/PhyreBlade.php b/web/app/PhyreBlade.php index 05cb9cc..bc404ee 100644 --- a/web/app/PhyreBlade.php +++ b/web/app/PhyreBlade.php @@ -20,6 +20,9 @@ public static function render($file, $data = []) $hints = app()->view->getFinder()->getHints(); if (isset($hints[$namespace])) { $path = $hints[$namespace][0] . '/' . $file; + } else { + $viewsPath = app()->view->getFinder()->getPaths()[0]; + $path = $viewsPath . '/' . $file; } if (!is_file($path)) {