diff --git a/app/helpers.php b/app/helpers.php index 6a43f146..6f6d01e6 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -25,7 +25,13 @@ if (!function_exists('setting')) { */ function setting($name, $default = null) { - return app(Repository::class)->get($name, $default); + static $settings = []; + + if (isset($settings[$name])) { + return $settings[$name]; + } + + return $settings[$name] = app(Repository::class)->get($name, $default); } }