Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ResetPasswordMail.php 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 ResetPasswordMail extends Mailable
  10. {
  11. use Queueable, SerializesModels;
  12. public $token;
  13. public function __construct($token)
  14. {
  15. $this->token = $token;
  16. }
  17. public function build()
  18. {
  19. return $this->subject('Reset Password')->view('auth.reset_password', ['token' => $this->token]);
  20. }
  21. /**
  22. * Get the message envelope.
  23. */
  24. public function envelope(): Envelope
  25. {
  26. return new Envelope(
  27. subject: 'Reset Password Mail',
  28. );
  29. }
  30. /**
  31. * Get the message content definition.
  32. */
  33. public function content(): Content
  34. {
  35. return new Content(
  36. view: 'auth.reset_password',
  37. );
  38. }
  39. /**
  40. * Get the attachments for the message.
  41. *
  42. * @return array<int, \Illuminate\Mail\Mailables\Attachment>
  43. */
  44. public function attachments(): array
  45. {
  46. return [];
  47. }
  48. }