Skip to content

Commit

Permalink
Merge branch '3.x' of github.com:lara-zeus/core into 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Jul 24, 2023
2 parents a9bbde7 + 020a98b commit a320b0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CoreServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ public function configurePackage(Package $package): void

public static function setThemePath($path): void
{
$viewPath = 'zeus::themes.'.config('zeus.theme').'.'.$path;
View::share($path.'Theme', $viewPath);
App::singleton($path.'Theme', function () use ($viewPath) {
$viewPath = 'zeus::themes.' . config('zeus.theme') . '.' . $path;
View::share($path . 'Theme', $viewPath);
App::singleton($path . 'Theme', function () use ($viewPath) {
return $viewPath;
});
}
Expand Down

0 comments on commit a320b0d

Please sign in to comment.