added company name to emails

This commit is contained in:
denisdulici 2017-11-15 21:33:12 +03:00
parent 07583fc1ff
commit 518863fbec
4 changed files with 7 additions and 6 deletions

View File

@ -18,7 +18,6 @@ class Reset extends Notification
* Create a notification instance.
*
* @param string $token
* @return void
*/
public function __construct($token)
{
@ -44,6 +43,8 @@ class Reset extends Notification
*/
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))

View File

@ -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
@ -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

View File

@ -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
@ -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

View File

@ -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 -->