title: Display Laravel Notification (MailMessage) with markdown after sent
body: <p>I'm saving every email I send to an entity into the database by creating a function <code>storeEmail</code> and make an insert of <code>MailMessage</code> class into <code>EmailMessage</code> model. Everything works fine, and the main <strong>goal</strong> is to display the message exactly as it was, when the recipient received it and retrieve all the messages I sent as a <code>User</code>, to a page. To be much easier to retrieve a render of each specific Message in foreach loop, I think is better to fetch it from the Model.</p>
  
  <p>This is my Notification class:</p>
  
  <pre><code>class SimpleEmail extends Notification
  {
      use Queueable;
  
      private $link;
      private $user;
  
      /**
       * Create a new notification instance.
       *
       * @return void
       */
      public function __construct($link)
      {
          $this-&gt;link = $link;
          $this-&gt;user = Auth::user();
      }
  
      /**
       * Get the notification's delivery channels.
       *
       * @param  mixed  $notifiable
       * @return array
       */
      public function via($notifiable)
      {
          return ['mail'];
      }
  
      /**
       * Get the mail representation of the notification.
       *
       * @param  mixed  $notifiable
       * @return \Illuminate\Notifications\Messages\MailMessage
       */
      public function toMail($notifiable)
      {   
          $mail = (new MailMessage)
              -&gt;from($this-&gt;user-&gt;email, $this-&gt;user-&gt;name)
              -&gt;subject('My Dummy Subject')
              -&gt;greeting('To: '.$notifiable-&gt;email)
              -&gt;action('Action Button', url($this-&gt;link))
              -&gt;line('Thank you for reading my message')
              -&gt;salutation('Friendly, '.$this-&gt;user-&gt;name);
  
          $this-&gt;storeEmail($mail,$notifiable);
          return $mail;
      }
  
      public function storeEmail($mail,$notifiable){
          $email = new EmailMessage;
          $email-&gt;sender_type = 'App\User';
          $email-&gt;sender_id = $this-&gt;user-&gt;id;
          $email-&gt;mail = $mail;
          $email-&gt;save();
          $notifiable-&gt;email_messages()-&gt;save($email);
      }
  }
  </code></pre>
  
  <p><strong><em><code>Note:</code></em></strong> </p>
  
  <ol>
  <li>I'm using <code>Illuminate\Notifications\Messages\MailMessage</code></li>
  <li>My class extends <code>Illuminate\Notifications\Notification</code></li>
  <li>I'm saving (new MailMessage) in the $email->mail = $mail; </li>
  </ol>
  
  <p>I tried to <code>dd($email-&gt;mail);</code> and I get this: </p>
  
  <pre><code> ^ array:20 [▼
    "view" =&gt; null
    "viewData" =&gt; []
    "markdown" =&gt; "notifications::email"
    "theme" =&gt; null
    "from" =&gt; array:2 [▶]
    "replyTo" =&gt; []
    "cc" =&gt; []
    "bcc" =&gt; []
    "attachments" =&gt; []
    "rawAttachments" =&gt; []
    "priority" =&gt; null
    "callbacks" =&gt; []
    "level" =&gt; "info"
    "subject" =&gt; "My Dummy Subject"
    "greeting" =&gt; "To: Dohn John"
    "salutation" =&gt; "Friendly, Nikolas Diakosavvas"
    "introLines" =&gt; array:2 [▶]
    "outroLines" =&gt; array:1 [▶]
    "actionText" =&gt; "Action Button"
    "actionUrl" =&gt; "http://my-example-url.com ▶"
  </code></pre>
  
  <p>How can I display the Mail Notification, as it was when I sent it ? What is the optimal solution for that ?
  Thanks, in advance</p>
  
  <p><strong>EDITED</strong></p>
  
  <p>Managed to render MailMessage using this code <strong>works</strong> :</p>
  
  <pre><code>$email = EmailMessage::first();
  return (new \App\Notifications\SimpleEmail('my-link', $email-&gt;recipient-&gt;assignto))-&gt;toMail($email-&gt;recipient);
  </code></pre>
  
  <p><strong>But this is not exactly what I wanted</strong>, because every time I need to find:</p>
  
  <ol>
  <li>Which Notification class used on every email so I can render it.</li>
  <li>Variables for each Notification class.</li>
  </ol>