todo/app/Mail/ForgotPassword.php

38 lines
646 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class ForgotPassword extends Mailable
{
use Queueable, SerializesModels;
2020-06-28 16:57:23 +00:00
public $name;
public $password;
/**
* Create a new message instance.
*
2020-06-28 16:57:23 +00:00
* @param $name
* @param $password
*/
2020-06-28 16:57:23 +00:00
public function __construct($name, $password)
{
2020-06-28 16:57:23 +00:00
$this->name = $name;
$this->password = $password;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
2020-06-28 16:57:23 +00:00
return $this->view('template.email.forgot');
}
}