Files
coolify/app/Livewire/VerifyEmail.php
Andras Bacsai 16c0cd10d8 rector: arrrrr
2025-01-07 14:52:08 +01:00

31 lines
606 B
PHP

<?php
namespace App\Livewire;
use DanHarrin\LivewireRateLimiting\WithRateLimiting;
use Exception;
use Livewire\Component;
class VerifyEmail extends Component
{
use WithRateLimiting;
public function again()
{
try {
$this->rateLimit(1, 300);
auth()->user()->sendVerificationEmail();
$this->dispatch('success', 'Email verification link sent!');
} catch (Exception $e) {
return handleError($e, $this);
}
return null;
}
public function render()
{
return view('livewire.verify-email');
}
}