Display link with verification_token in VerifyRegistration mail
MODIFY
app/Mail/VerifyRegistration.php
app/Mail/VerifyRegistration.php
@@ -21,7 +21,8 @@ class VerifyRegistration extends Mailable {
public function build() {
return $this->view('emails.verify_registration')
->with([
- 'name' => $this->user->name
+ 'name' => $this->user->name,
+ 'verification_token' => $this->user->verification_token
]);
}
}

MODIFY
resources/views/emails/verify_registration.blade.php
resources/views/emails/verify_registration.blade.php
No more dealing with pesky, half-assed spreadsheets.
- <a href="{{ config('app.url') . '/dashboard' }}">Go get started</a>
+ <a href="{{ config('app.url') . '/verify/' . $verification_token }}">Verify</a>
@endsection

Display link with verification_token in VerifyRegistration mail