diff options
author | Marvin Borner | 2018-07-11 18:51:39 +0200 |
---|---|---|
committer | Marvin Borner | 2018-07-11 18:51:39 +0200 |
commit | b7a6fbc9cc5d9d601c60e6ed4123e021e4aeaf5b (patch) | |
tree | 17af273b117187ad7937c477fe245c69410f7179 /app/Mail/EmailVerification.php | |
parent | 419c90e49c34aa2b326a25e2ab85cdfb71f18e53 (diff) |
Added/fixed email verification
Diffstat (limited to 'app/Mail/EmailVerification.php')
-rw-r--r-- | app/Mail/EmailVerification.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/app/Mail/EmailVerification.php b/app/Mail/EmailVerification.php new file mode 100644 index 0000000..4f393ac --- /dev/null +++ b/app/Mail/EmailVerification.php @@ -0,0 +1,36 @@ +<?php + +namespace App\Mail; + +use Illuminate\Bus\Queueable; +use Illuminate\Mail\Mailable; +use Illuminate\Queue\SerializesModels; + +class EmailVerification extends Mailable +{ + use Queueable, SerializesModels; + + protected $user; + + /** + * Create a new message instance. + * + * @return void + */ + public function __construct($user) + { + $this->user = $user; + } + + /** + * Build the message. + * + * @return $this + */ + public function build() + { + return $this->view('email.verify')->with([ + 'email_token' => $this->user->email_token, + ]); + } +} |