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