• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

orchestral / workbench / 12111218754

02 Dec 2024 01:51AM UTC coverage: 93.842% (-2.8%) from 96.629%
12111218754

push

github

crynobone
Merge branch '9.x' into 10.x

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>

154 of 169 new or added lines in 19 files covered. (91.12%)

320 of 341 relevant lines covered (93.84%)

10.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/src/Http/Controllers/Auth/VerifyEmailController.php
1
<?php
2

3
namespace Orchestra\Workbench\Http\Controllers\Auth;
4

5
use Illuminate\Auth\Events\Verified;
6
use Illuminate\Foundation\Auth\EmailVerificationRequest;
7
use Illuminate\Http\RedirectResponse;
8
use Orchestra\Workbench\Http\Controllers\Controller;
9

10
class VerifyEmailController extends Controller
11
{
12
    /**
13
     * Mark the authenticated user's email address as verified.
14
     */
15
    public function __invoke(EmailVerificationRequest $request): RedirectResponse
16
    {
17
        if ($request->user()->hasVerifiedEmail()) {
1✔
NEW
18
            return redirect()->intended(route('dashboard', absolute: false).'?verified=1');
×
19
        }
20

21
        if ($request->user()->markEmailAsVerified()) {
1✔
22
            event(new Verified($request->user()));
1✔
23
        }
24

25
        return redirect()->intended(route('dashboard', absolute: false).'?verified=1');
1✔
26
    }
27
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc