mirror of
https://gitlab.com/omair-personal/izyim.git
synced 2026-08-19 04:14:05 +00:00
8a28eb1790
This reverts merge request !5
38 lines
922 B
PHP
38 lines
922 B
PHP
<?php
|
|
|
|
namespace App\Notifications;
|
|
|
|
|
|
use App\Models\UserEmailVerification;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
class VerifyEmail extends AbstractEmail
|
|
{
|
|
|
|
/** @var UserEmailVerification */
|
|
private $attempt;
|
|
|
|
/**
|
|
* EmailVerificationRequest constructor.
|
|
*
|
|
* @param UserEmailVerification $attempt
|
|
*/
|
|
public function __construct(UserEmailVerification $attempt) {
|
|
$this->attempt = $attempt;
|
|
}
|
|
|
|
public function toMail()
|
|
{
|
|
return (new MailMessage)
|
|
->subject('Email Verification Required')
|
|
->line('Please click the button below to verify your email address.')
|
|
->action('Verify Email Address', $this->verificationUrl()
|
|
)
|
|
->line('If you did not create an account, no further action is required.');
|
|
}
|
|
|
|
private function verificationUrl(){
|
|
return $this->attempt->token;
|
|
}
|
|
|
|
} |