turtle-wow-source-kinda/Dumps/Source Code/8 - Development_website/develop/app/Livewire/VerificationMessage.php
Brian Oost a1d5bb70b2 Init
2024-08-06 18:06:40 +02:00

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');
}
}