Aplikasi Keuangan yang mengatur lalu lintas transaksi antara bank dan aplikasi internal Kampus
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.
 
 
 
 
 

27 lines
886 B

<?php
namespace App\Http\Controllers\Web\Auth;
use App\Domains\Identity\Actions\Onboarding\VerifyUserEmail;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\EmailVerificationRequest;
use Illuminate\Http\RedirectResponse;
class VerifyEmailController extends Controller
{
/**
* Mark the authenticated user's email address as verified.
*
* The Gateway delegates the database write + event dispatching entirely
* to VerifyUserEmail — it owns only the redirect logic.
*/
public function __invoke(
EmailVerificationRequest $request,
VerifyUserEmail $action,
): RedirectResponse {
// Action handles markEmailAsVerified(), Verified event, and UserEmailVerified event.
$action->execute($request->user());
return redirect()->intended(route('dashboard', absolute: false).'?verified=1');
}
}