3 namespace App\Http\Controllers\Auth;
5 use App\Http\Controllers\Controller;
6 use App\Providers\RouteServiceProvider;
7 use Illuminate\Http\Request;
9 class EmailVerificationNotificationController extends Controller
12 * Send a new email verification notification.
14 * @param \Illuminate\Http\Request $request
15 * @return \Illuminate\Http\RedirectResponse
17 public function store(Request $request)
19 if ($request->user()->hasVerifiedEmail()) {
20 return redirect()->intended(RouteServiceProvider::HOME);
23 $request->user()->sendEmailVerificationNotification();
25 return back()->with('status', 'verification-link-sent');