]> git.localhorst.tv Git - alttp.git/blob - app/Http/Controllers/Auth/EmailVerificationPromptController.php
add discord auth
[alttp.git] / app / Http / Controllers / Auth / EmailVerificationPromptController.php
1 <?php
2
3 namespace App\Http\Controllers\Auth;
4
5 use App\Http\Controllers\Controller;
6 use App\Providers\RouteServiceProvider;
7 use Illuminate\Http\Request;
8
9 class EmailVerificationPromptController extends Controller
10 {
11     /**
12      * Display the email verification prompt.
13      *
14      * @param  \Illuminate\Http\Request  $request
15      * @return mixed
16      */
17     public function __invoke(Request $request)
18     {
19         return $request->user()->hasVerifiedEmail()
20                     ? redirect()->intended(RouteServiceProvider::HOME)
21                     : view('auth.verify-email');
22     }
23 }