diff --git a/app/Http/Controllers/ContactController.php b/app/Http/Controllers/ContactController.php index 5e97d9eb..e9555302 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.'); }