You need to publish the vendor files (php artisan vendor:publish) for Laravel's email templates, and edit the header and footer components in the resources/views/vendor/mail/markdown/message.blade.php file.
Feb 5, 2017
15
Level 2
Modify the header and footer in mail markdown mails
Hello,
I'm trying to run the new laravel markdown mails. My blade template is:
@component('mail::message')
# {{ $Subject }}
Hallo {{ $user->name }},
I'm a mail message.
Greetings<br>
{{ config('app.name') }}
@endcomponent
The result is this:

But how can i define the header or footer? I will put a logo in the header.
Greetings
Level 2
ok, i've found the solution. You don't have to use @component('mail::message')... you must use @component('mail::layout') in the template.
Here is my mail:
@component('mail::layout')
{{-- Header --}}
@slot('header')
@component('mail::header', ['url' => config('app.url')])
<!-- header here -->
@endcomponent
@endslot
{{-- Body --}}
<!-- Body here -->
{{-- Subcopy --}}
@slot('subcopy')
@component('mail::subcopy')
<!-- subcopy here -->
@endcomponent
@endslot
{{-- Footer --}}
@slot('footer')
@component('mail::footer')
<!-- footer here -->
@endcomponent
@endslot
@endcomponent
38 likes
Please or to participate in this conversation.