3 namespace App\Http\Controllers\Auth;
5 use App\Http\Controllers\Controller;
6 use App\Providers\RouteServiceProvider;
7 use Illuminate\Http\Request;
9 class EmailVerificationPromptController extends Controller
12 * Display the email verification prompt.
14 * @param \Illuminate\Http\Request $request
17 public function __invoke(Request $request)
19 return $request->user()->hasVerifiedEmail()
20 ? redirect()->intended(RouteServiceProvider::HOME)
21 : view('auth.verify-email');