Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 1 | public function store(Request $request): RedirectResponse |
|
16 | { |
||
17 | 1 | if ($request->user()->hasVerifiedEmail()) { |
|
18 | 1 | return redirect()->intended(RouteServiceProvider::HOME); |
|
19 | } |
||
20 | |||
21 | 1 | $request->user()->sendEmailVerificationNotification(); |
|
22 | |||
23 | 1 | return back()->with('status', 'verification-link-sent'); |
|
24 | } |
||
26 |