diff --git a/app/helpers.php b/app/helpers.php index dce60191..94c1362a 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -9,10 +9,25 @@ * file that was distributed with this source code. */ +use CachetHQ\Cachet\Settings\Repository; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Request; use Jenssegers\Date\Date; +if (!function_exists('setting')) { + /** + * Get a setting, or the default value. + * + * @param string $name + * @param mixed $default + * + * @return mixed + */ + function setting($name, $default = null) { + return app(Repository::class)->get($name, $default); + } +} + if (!function_exists('set_active')) { /** * Set active class if request is in path. diff --git a/resources/views/vendor/notifications/email.blade.php b/resources/views/vendor/notifications/email.blade.php index 67f49c2f..5623cfa0 100644 --- a/resources/views/vendor/notifications/email.blade.php +++ b/resources/views/vendor/notifications/email.blade.php @@ -71,7 +71,7 @@ $style = [
- Regards,
{{ config('app.name') }}
+ Regards,
{{ setting('app_name') }}
© {{ date('Y') }} - {{ config('app.name') }}. + {{ setting('app_name') }}. All rights reserved.