ConfirmAppEmail.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 ConfirmAppEmail extends Mailable
  10. {
  11. use Queueable, SerializesModels;
  12. public $verify;
  13. public $appUrl;
  14. /**
  15. * Create a new message instance.
  16. *
  17. * @return void
  18. */
  19. public function __construct($verify, $url)
  20. {
  21. $this->verify = $verify;
  22. $this->appUrl = $url;
  23. }
  24. /**
  25. * Get the message envelope.
  26. *
  27. * @return \Illuminate\Mail\Mailables\Envelope
  28. */
  29. public function envelope()
  30. {
  31. return new Envelope(
  32. subject: 'Complete Account Registration',
  33. );
  34. }
  35. /**
  36. * Get the message content definition.
  37. *
  38. * @return \Illuminate\Mail\Mailables\Content
  39. */
  40. public function content()
  41. {
  42. return new Content(
  43. markdown: 'emails.confirm_app_email',
  44. with: [
  45. 'verify' => $this->verify,
  46. 'appUrl' => $this->appUrl
  47. ],
  48. );
  49. }
  50. /**
  51. * Get the attachments for the message.
  52. *
  53. * @return array
  54. */
  55. public function attachments()
  56. {
  57. return [];
  58. }
  59. }