title: Laravel 5.4 mail messages how to edit header and footer
body: <p>Hi I am trying to use MailMessage function in my Laravel App. My question is very simple. How to edit the Header and the Footer when receiving email from the app? Here is the picture below.</p>
  
  <p><a href="https://i.stack.imgur.com/eYd8K.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eYd8K.png" alt="enter image description here"></a></p>
  
  <p>I want to change the header Laravel from my App name and the Hello with a Hello $user->name and the Regards, with my App name also and the footer below to the App name also.</p>
  
  <p><a href="https://i.stack.imgur.com/zQmOc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zQmOc.png" alt="enter image description here"></a></p>
  
  <p>I tried to change the `</p>
  
  <blockquote>
    <p>resources/views/vendor/mail/markdown/message.blade.php</p>
  </blockquote>
  
  <p>To:</p>
  
  <pre><code>@component('mail::layout')
      {{-- Header --}}
      @slot('header')
          @component('mail::header', ['url' =&gt; config('app.url')])
              CCTV App
          @endcomponent
      @endslot
  
      {{-- Body --}}
      {{ $slot }}
  
      {{-- Subcopy --}}
      @isset($subcopy)
          @slot('subcopy')
              @component('mail::subcopy')
                  CCTV Team
              @endcomponent
          @endslot
      @endisset
  
      {{-- Footer --}}
      @slot('footer')
          @component('mail::footer')
              © {{ date('Y') }} CCV3. All rights reserved.
          @endcomponent
      @endslot
  @endcomponent
  </code></pre>
  
  <p>But not working when I send a reset password request
  Would really appreciate if someone can help me.
  Thanks in advance.</p>
  
  <p>`</p>