| Total Complexity | 4 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class FeedbackReceived extends Mailable |
||
| 16 | { |
||
| 17 | use Queueable, SerializesModels; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Create a new message instance. |
||
| 21 | * |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | public function __construct(public Feedback $feedback, public ?User $user) |
||
| 25 | {} |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get the message envelope. |
||
| 29 | * |
||
| 30 | * @return \Illuminate\Mail\Mailables\Envelope |
||
| 31 | */ |
||
| 32 | public function envelope() |
||
| 33 | { |
||
| 34 | return new Envelope( |
||
| 35 | from: new Address(env('MAIL_FROM_ADDRESS', ''), env('MAIL_FROM_NAME')), |
||
| 36 | subject: 'Feedback Received', |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get the message content definition. |
||
| 42 | * |
||
| 43 | * @return \Illuminate\Mail\Mailables\Content |
||
| 44 | */ |
||
| 45 | public function content() |
||
| 46 | { |
||
| 47 | return new Content( |
||
| 48 | view: 'tontine.emails.feedbacks.received', |
||
| 49 | ); |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get the attachments for the message. |
||
| 54 | * |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | public function attachments() |
||
| 58 | { |
||
| 59 | return []; |
||
| 60 | } |
||
| 62 |