1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace App\Mail;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
- use Illuminate\Mail\Mailable;
- use Illuminate\Queue\SerializesModels;
- class ConversationMailManager extends Mailable
- {
- use Queueable, SerializesModels;
- /**
- * Create a new message instance.
- *
- * @return void
- */
- public $array;
- public function __construct($array)
- {
- $this->array = $array;
- }
- /**
- * Build the message.
- *
- * @return $this
- */
- public function build()
- {
- return $this->view('emails.conversation')
- ->from($this->array['from'], env('MAIL_FROM_NAME'))
- ->subject($this->array['subject'])
- ->with([
- 'content' => $this->array['content'],
- 'link' => $this->array['link'],
- 'sender' => $this->array['sender'],
- 'details' => $this->array['details']
- ]);
- }
- }
|