Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

570 B
Raw Blame
<?php

namespace App\Livewire;

use DanHarrin\LivewireRateLimiting\WithRateLimiting;
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);
        }
    }

    public function render()
    {
        return view('livewire.verify-email');
    }
}