aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Mail/EmailVerification.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Mail/EmailVerification.php')
-rw-r--r--app/Mail/EmailVerification.php36
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,
+ ]);
+ }
+}