title: How to make the email notification header and footer in Laravel dynamic?
body: <p>I've only been able to pass dynamic data to my email notification body, not the header and footer, as it seems these are static templates which one can't pass variables directly to. Can this be done at all? I want to customise the header to fit each tenant who receives an email notification.</p>
  
  <pre><code>/**
   * Get the mail representation of the notification.
   *
   * @param  mixed  $notifiable
   * @return \Illuminate\Notifications\Messages\MailMessage
   */
  public function toMail($notifiable)
  {
      $url = url('/invoice/'.$this-&gt;invoice-&gt;id);
  
      return (new MailMessage)
              -&gt;greeting('Hello!')
              -&gt;line('One of your invoices has been paid!')
              -&gt;action('View Invoice', $url)
              -&gt;line('Thank you for using our application!');
  }
  </code></pre>
  
  <p>How can I pass additional variables and access these in the header and footer of the notification template?</p>
  
  <p>L</p>