Reputation: 2166
I have no idea where could I found the header logo
example below(squared):
public function toMail($notifiable)
{
return (new MailMessage)
->line('The introduction to the notification.'.$user->name)
->line('Hey Now hey now')
->action('Notification Action', route('register.select'))
->line('Thank you for using our application!');
}
email.blade.php
:
@component('mail::message')
{{-- Greeting --}}
@if (! empty($greeting))
# {{ $greeting }}
@else
@if ($level === 'error')
# @lang('Whoops!')
@else
# @lang('Hello!')
@endif
@endif
{{-- Intro Lines --}}
@foreach ($introLines as $line)
{{ $line }}
@endforeach
... and so on, and so forth
logo header
, my problem I can't find where exactly. Need your help Sirs.
Upvotes: 9
Views: 18291
Reputation: 94
It only shows the Laravel logo if the APP_NAME in the .env is set as "Laravel".
So once you change this setting it will omit the default logo. if you want to change it to display something else you can publish the mail components as other answers showed and customize it.
Upvotes: 6
Reputation: 10076
You just have to customize mail templates.
Run this command:
php artisan vendor:publish --tag=laravel-notifications
After that you'll find templates in resources/views/vendor/notifications
.
If you want to customize mail components used in templates:
php artisan vendor:publish --tag=laravel-mail
You'll find components in resources/views/vendor/mail
. The ones you want are message.blade.php
and header.blade.php
.
Upvotes: 28