1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace Xetaravel\Mail; |
||
6 | |||
7 | use Illuminate\Bus\Queueable; |
||
8 | use Illuminate\Mail\Mailable; |
||
9 | use Illuminate\Queue\SerializesModels; |
||
10 | |||
11 | class Contact extends Mailable |
||
12 | { |
||
13 | use Queueable; |
||
14 | use SerializesModels; |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
15 | |||
16 | /** |
||
17 | * The details of the mail. |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | public $details; |
||
22 | |||
23 | /** |
||
24 | * Create a new message instance. |
||
25 | * |
||
26 | * @return void |
||
27 | */ |
||
28 | public function __construct(array $details) |
||
29 | { |
||
30 | $this->details = $details; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Build the message. |
||
35 | * |
||
36 | * @return $this |
||
37 | */ |
||
38 | public function build() |
||
39 | { |
||
40 | return $this |
||
41 | ->subject($this->details['subject']) |
||
42 | ->view('emails.contact'); |
||
43 | } |
||
44 | } |
||
45 |