Sistema de controles da União de Ciclistas do Brasil
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
<?php
|
|
|
|
|
|
namespace App\Http\Livewire\Auth;
|
|
|
|
|
|
use App\Providers\RouteServiceProvider;
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
use Livewire\Component;
|
|
|
|
|
|
class Verify extends Component
|
|
|
{
|
|
|
public function resend()
|
|
|
{
|
|
|
if (Auth::user()->hasVerifiedEmail()) {
|
|
|
redirect(route('home'));
|
|
|
}
|
|
|
|
|
|
Auth::user()->sendEmailVerificationNotification();
|
|
|
|
|
|
$this->emit('resent');
|
|
|
|
|
|
session()->flash('resent');
|
|
|
}
|
|
|
|
|
|
public function render()
|
|
|
{
|
|
|
return view('livewire.auth.verify');
|
|
|
}
|
|
|
}
|