From 5d3317d25573b4a2438ba9006e0d2c708d971139 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 18 Jun 2019 19:58:57 -0600 Subject: [PATCH] Update ContactController --- app/Http/Controllers/ContactController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ContactController.php b/app/Http/Controllers/ContactController.php index 5e97d9ebd..e95553021 100644 --- a/app/Http/Controllers/ContactController.php +++ b/app/Http/Controllers/ContactController.php @@ -34,7 +34,7 @@ class ContactController extends Controller ->whereDate('created_at', '>', now()->subDays($max)) ->count(); - if($contact >= 2) { + if($contact >= $max) { return redirect()->back()->with('error', 'You have recently sent a message. Please try again later.'); }