Download app/Http/Controllers/Auth/VerifyEmailController.php from veela4/gamtest: direct link, hf CLI and curl.
- Browser
- Download file 800 Bytes
-
https://huggingface.co/veela4/gamtest/resolve/main/app/Http/Controllers/Auth/VerifyEmailController.php
- Command line
-
hf download hf://veela4/gamtest/app/Http/Controllers/Auth/VerifyEmailController.php
-
curl -L -o VerifyEmailController.php https://huggingface.co/veela4/gamtest/resolve/main/app/Http/Controllers/Auth/VerifyEmailController.php
800 Bytes
| namespace App\Http\Controllers\Auth; | |
| use App\Http\Controllers\Controller; | |
| use Illuminate\Auth\Events\Verified; | |
| use Illuminate\Foundation\Auth\EmailVerificationRequest; | |
| use Illuminate\Http\RedirectResponse; | |
| class VerifyEmailController extends Controller | |
| { | |
| /** | |
| * Mark the authenticated user's email address as verified. | |
| */ | |
| public function __invoke(EmailVerificationRequest $request): RedirectResponse | |
| { | |
| if ($request->user()->hasVerifiedEmail()) { | |
| return redirect()->intended(route('dashboard', absolute: false).'?verified=1'); | |
| } | |
| if ($request->user()->markEmailAsVerified()) { | |
| event(new Verified($request->user())); | |
| } | |
| return redirect()->intended(route('dashboard', absolute: false).'?verified=1'); | |
| } | |
| } | |