mirror of
https://github.com/brian8544/turtle-wow.git
synced 2025-01-03 13:24:35 +00:00
30 lines
657 B
PHP
30 lines
657 B
PHP
<?php
|
|
|
|
namespace App\Livewire;
|
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Livewire\Component;
|
|
|
|
class VerificationMessage extends Component
|
|
{
|
|
public $buttonDisable = false;
|
|
|
|
public function resendVerification()
|
|
{
|
|
if (!$this->buttonDisable) {
|
|
$this->js("alert('".__('header')['verification_email_resent']."')");
|
|
$user = Auth::guard('account')->user();
|
|
|
|
if ($user) {
|
|
$user->sendEmailVerificationNotification(false);
|
|
|
|
$this->buttonDisable = true;
|
|
}
|
|
}
|
|
}
|
|
public function render()
|
|
{
|
|
return view('livewire.verification-message');
|
|
}
|
|
}
|