ForgetPasswordEmail.php 609 B

12345678910111213141516171819202122232425262728293031323334
  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\Queue\SerializesModels;
  7. class ForgetPasswordEmail extends Mailable
  8. {
  9. use Queueable, SerializesModels;
  10. public $code;
  11. public $subject = "您的找回密码验证码";
  12. /**
  13. * @param $code
  14. */
  15. public function __construct($code)
  16. {
  17. $this->code = $code;
  18. }
  19. /**
  20. * Build the message.
  21. *
  22. * @return $this
  23. */
  24. public function build()
  25. {
  26. return $this->view('emails.forgetPassword');
  27. }
  28. }