From 3aba997a9661dbf14bc21ec2a69a402876b38a44 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 20 Jun 2026 15:30:52 +0200 Subject: [PATCH] Fix ThemeService: use prependLocation instead of addLocation so theme views take priority --- app/Services/ThemeService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/ThemeService.php b/app/Services/ThemeService.php index 313ba9b..476bce3 100644 --- a/app/Services/ThemeService.php +++ b/app/Services/ThemeService.php @@ -19,11 +19,11 @@ class ThemeService $basePath = config('theme.base_path', base_path('resources/themes')); if ($parentTheme) { - View::addLocation("{$basePath}/{$parentTheme}/views"); + View::prependLocation("{$basePath}/{$parentTheme}/views"); $this->parentTheme = $parentTheme; } - View::addLocation("{$basePath}/{$theme}/views"); + View::prependLocation("{$basePath}/{$theme}/views"); $this->activeTheme = $theme; $this->registerVendorNamespaces($theme, $basePath);