Update AccountController

This commit is contained in:
Daniel Supernault 2021-11-08 23:13:10 -07:00
parent 82a84a733b
commit 0e892bb3fd
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -75,7 +75,10 @@ class AccountController extends Controller
public function verifyEmail(Request $request)
{
return view('account.verify_email');
$recentSent = EmailVerification::whereUserId(Auth::id())
->whereDate('created_at', '>', now()->subHours(12))->count();
return view('account.verify_email', compact('recentSent'));
}
public function sendVerifyEmail(Request $request)