ParentChildInvite.php 1018 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace App\Mail;
  3. use Illuminate\Bus\Queueable;
  4. use Illuminate\Contracts\Queue\ShouldQueue;
  5. use Illuminate\Mail\Mailable;
  6. use Illuminate\Mail\Mailables\Content;
  7. use Illuminate\Mail\Mailables\Envelope;
  8. use Illuminate\Queue\SerializesModels;
  9. class ParentChildInvite extends Mailable
  10. {
  11. use Queueable, SerializesModels;
  12. public function __construct(
  13. public $verify,
  14. ) {}
  15. /**
  16. * Get the message envelope.
  17. */
  18. public function envelope(): Envelope
  19. {
  20. return new Envelope(
  21. subject: 'You\'ve been invited to join Pixelfed!',
  22. );
  23. }
  24. /**
  25. * Get the message content definition.
  26. */
  27. public function content(): Content
  28. {
  29. return new Content(
  30. markdown: 'emails.parental-controls.invite',
  31. );
  32. }
  33. /**
  34. * Get the attachments for the message.
  35. *
  36. * @return array<int, \Illuminate\Mail\Mailables\Attachment>
  37. */
  38. public function attachments(): array
  39. {
  40. return [];
  41. }
  42. }