Skip to content

Commit

Permalink
added company name to emails
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Nov 15, 2017
1 parent 07583fc commit 518863f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion app/Notifications/Auth/Reset.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class Reset extends Notification
* Create a notification instance.
*
* @param string $token
* @return void
*/
public function __construct($token)
{
Expand All @@ -44,6 +43,8 @@ public function via($notifiable)
*/
public function toMail($notifiable)
{
setting(['general.company_name' => config('app.name')]);

return (new MailMessage)
->line('You are receiving this email because we received a password reset request for your account.')
->action('Reset Password', url('auth/reset', $this->token, true))
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') }}
{{ setting('general.company_name', config('app.name')) }}
@endcomponent
@endslot

Expand All @@ -21,7 +21,7 @@
{{-- Footer --}}
@slot('footer')
@component('mail::footer')
© {{ date('Y') }} {{ config('app.name') }}. All rights reserved.
© {{ date('Y') }} {{ setting('general.company_name', config('app.name')) }}. All rights reserved.
@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') }}
{{ setting('general.company_name', config('app.name')) }}
@endcomponent
@endslot

Expand All @@ -21,7 +21,7 @@
{{-- Footer --}}
@slot('footer')
@component('mail::footer')
© {{ date('Y') }} {{ config('app.name') }}. All rights reserved.
© {{ date('Y') }} {{ setting('general.company_name', config('app.name')) }}. All rights reserved.
@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
Regards,<br>{{ config('app.name') }}
Regards,<br>{{ setting('general.company_name', config('app.name')) }}
@endif

<!-- Subcopy -->
Expand Down

0 comments on commit 518863f

Please sign in to comment.