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

تعليقات

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

How to Create Treeview with Bootstrap and jQuery

jQuery Datatables with PHP, MySQL and AJAX Example

How to Add Images to Dropdown List using jQuery