migrate to gtea from bistbucket
This commit is contained in:
33
app/Mail/PasswordReset.php
Normal file
33
app/Mail/PasswordReset.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class PasswordReset extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
protected $data;
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
public function build()
|
||||
{
|
||||
return $this->subject('Password reset code')
|
||||
->from(env('MAIL_FROM_ADDRESS'), env('MAIL_FROM_NAME'))
|
||||
->view('mail.password-reset')
|
||||
->with([
|
||||
'data' => $this->data
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user