fixed theme

This commit is contained in:
Edward Yang 2022-07-18 12:02:04 +08:00
parent d158d6c370
commit 9f3768cc07
1 changed files with 4 additions and 2 deletions

View File

@ -32,8 +32,10 @@ class ShopServiceProvider extends ServiceProvider
$this->app->bind('view.finder', function ($app) {
$paths = $app['config']['view.paths'];
$customTheme[] = base_path('themes/black');
$paths = array_merge($customTheme, $paths);
if ($theme = setting('base.theme')) {
$customTheme[] = base_path("themes/{$theme}");
$paths = array_merge($customTheme, $paths);
}
return new FileViewFinder($app['files'], $paths);
});