short-url/app/Mail/ForgotPassword.php

38 lines
646 B
PHP
Raw 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;
public $name;
public $password;
/**
* Create a new message instance.
*
* @param $name
* @param $password
*/
public function __construct($name, $password)
{
$this->name = $name;
$this->password = $password;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->view('template.email.forgot');
}
}