2026-01-20 19:53:54 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Auth;
|
|
|
|
|
|
|
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
|
use Illuminate\Http\RedirectResponse;
|
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
|
|
|
|
class EmailVerificationNotificationController extends Controller
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Send a new email verification notification.
|
|
|
|
|
*/
|
|
|
|
|
public function store(Request $request): RedirectResponse
|
|
|
|
|
{
|
|
|
|
|
if ($request->user()->hasVerifiedEmail()) {
|
2026-03-29 22:24:28 +00:00
|
|
|
return redirect()->intended(route('app.calendar'));
|
2026-01-20 19:53:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$request->user()->sendEmailVerificationNotification();
|
|
|
|
|
|
|
|
|
|
return back()->with('status', 'verification-link-sent');
|
|
|
|
|
}
|
|
|
|
|
}
|