Skip to content

Commit

Permalink
feat: add a display name for email notifications (#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Sep 28, 2018
1 parent 2019cc2 commit 7f3894c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
11 changes: 11 additions & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions resources/views/vendor/mail/html/message.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{-- Header --}}
@slot('header')
@component('mail::header', ['url' => config('app.url')])
{{ config('app.name') }}
{{ config('app.display_name') }}
@endcomponent
@endslot

Expand All @@ -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
4 changes: 2 additions & 2 deletions resources/views/vendor/mail/markdown/message.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{-- Header --}}
@slot('header')
@component('mail::header', ['url' => config('app.url')])
{{ config('app.name') }}
{{ config('app.display_name') }}
@endcomponent
@endslot

Expand All @@ -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
2 changes: 1 addition & 1 deletion resources/views/vendor/notifications/email.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
@if (! empty($salutation))
{{ $salutation }}
@else
@lang('mail.notifications_regards'),<br>{{ config('app.name') }}
@lang('mail.notifications_regards'),<br>{{ config('app.display_name') }}
@endif

{{-- Subcopy --}}
Expand Down

0 comments on commit 7f3894c

Please sign in to comment.