Created
April 26, 2019 11:51
-
-
Save mhmohon/e7e8cbed30cc4d07800227a3ca37ff40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Mail; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Mail\Mailable; | |
use Illuminate\Queue\SerializesModels; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
class SendPasswordResetLink extends Mailable | |
{ | |
use Queueable, SerializesModels; | |
public $user; | |
public $token; | |
/** | |
* Create a new message instance. | |
* | |
* @return void | |
*/ | |
public function __construct($user, $token) | |
{ | |
$this->user = $user; | |
$this->token = $token; | |
} | |
/** | |
* Build the message. | |
* | |
* @return $this | |
*/ | |
public function build() | |
{ | |
$data['subject'] = config('global.company').' - Set Password'; | |
$data['button_link'] = url('admin/set-password/'.$this->token); | |
$data['button'] = 'Set Password'; | |
$data['email'] = $this->user->email; | |
return $this->subject($data['subject'])->view('emails.app_email', $data); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment