3
0
Fork 0
This repository has been archived on 2024-11-14. You can view files and clone it, but cannot push or open issues or pull requests.
ThemeParkPlus-Panel/app/Mail/EmailChange.php

41 lines
788 B
PHP
Raw Permalink Normal View History

2021-06-27 19:01:43 +00:00
<?php
namespace App\Mail;
use App\User;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class EmailChange extends Mailable
{
use Queueable, SerializesModels;
private $change;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($change)
{
$this->change = $change;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$user = User::findOrFail($this->change->user_id);
return $this->subject('Change Email')->markdown('emails.change')->with([
'user' => $user,
'token' => $this->change->token,
'email' => $this->change->email
]);
}
}