diff --git a/CHANGELOG b/CHANGELOG index 98aff64076b..c96be01c636 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -12,6 +12,7 @@ UNRELEASED CHANGES: * Add sentry:release command * Add Envoy file template * Add passport config file +* Add new variable APP_DISPLAY_NAME RELEASED VERSIONS: diff --git a/config/app.php b/config/app.php index ac9b9a7e407..36e115a7a35 100644 --- a/config/app.php +++ b/config/app.php @@ -15,6 +15,17 @@ 'name' => env('APP_NAME', 'Monica'), + /* + |-------------------------------------------------------------------------- + | Application Display Name + |-------------------------------------------------------------------------- + | + | This is the name of the application that will be displayed in the notification emails. + | + */ + + 'display_name' => env('APP_DISPLAY_NAME', env('APP_NAME', 'Monica')), + /* |-------------------------------------------------------------------------- | Application Environment diff --git a/resources/views/vendor/mail/html/message.blade.php b/resources/views/vendor/mail/html/message.blade.php index b67104e0bfa..38ebd91afed 100644 --- a/resources/views/vendor/mail/html/message.blade.php +++ b/resources/views/vendor/mail/html/message.blade.php @@ -2,7 +2,7 @@ {{-- Header --}} @slot('header') @component('mail::header', ['url' => config('app.url')]) - {{ config('app.name') }} + {{ config('app.display_name') }} @endcomponent @endslot @@ -21,7 +21,7 @@ {{-- Footer --}} @slot('footer') @component('mail::footer') - © {{ date('Y') }} {{ config('app.name') }}. @lang('mail.notifications_rights'). + © {{ date('Y') }} {{ config('app.display_name') }}. @lang('mail.notifications_rights'). @endcomponent @endslot @endcomponent diff --git a/resources/views/vendor/mail/markdown/message.blade.php b/resources/views/vendor/mail/markdown/message.blade.php index aae307b6671..597067af015 100644 --- a/resources/views/vendor/mail/markdown/message.blade.php +++ b/resources/views/vendor/mail/markdown/message.blade.php @@ -2,7 +2,7 @@ {{-- Header --}} @slot('header') @component('mail::header', ['url' => config('app.url')]) - {{ config('app.name') }} + {{ config('app.display_name') }} @endcomponent @endslot @@ -21,7 +21,7 @@ {{-- Footer --}} @slot('footer') @component('mail::footer') - © {{ date('Y') }} {{ config('app.name') }}. @lang('mail.notifications_rights'). + © {{ date('Y') }} {{ config('app.display_name') }}. @lang('mail.notifications_rights'). @endcomponent @endslot @endcomponent diff --git a/resources/views/vendor/notifications/email.blade.php b/resources/views/vendor/notifications/email.blade.php index f1eec96484e..929cd264d0d 100644 --- a/resources/views/vendor/notifications/email.blade.php +++ b/resources/views/vendor/notifications/email.blade.php @@ -45,7 +45,7 @@ @if (! empty($salutation)) {{ $salutation }} @else -@lang('mail.notifications_regards'),
{{ config('app.name') }} +@lang('mail.notifications_regards'),
{{ config('app.display_name') }} @endif {{-- Subcopy --}}