how to markdown multiple email blade?

i have multiple email template blade view which i want to markdown but laravel defualt mail method have one build method like this

   /**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->markdown('view-to-mail', [
'messageBody' => $this->data['message'],
]);
}

but i have multiple email template like this

  mail1.blade.php
mail2.blade.php
mail3.blade.php

i wnat to make all of them as markdown something like this

    public function build()
{
return $this->markdown('mail1.blade.php', [
'messageBody' => $this->data['message'],
]);
return $this->markdown('mail2.blade.php', [
'messageBody' => $this->data['message'],
]);
return $this->markdown('mail3.blade.php', [
'messageBody' => $this->data['message'],
]);
}

how i can do that something like above?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3jE2GSZ
via IFTTT

تعليقات

المشاركات الشائعة من هذه المدونة

5 Free Black and White Social Media Icons Sets with CSS and HTML

How to Create Treeview with Bootstrap and jQuery

How to Change Apache and MySQL Port Number in XAMPP Localhost