Ver código fonte

Update ContactController

Daniel Supernault 6 anos atrás
pai
commit
5d3317d255
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Http/Controllers/ContactController.php

+ 1 - 1
app/Http/Controllers/ContactController.php

@@ -34,7 +34,7 @@ class ContactController extends Controller
 			->whereDate('created_at', '>', now()->subDays($max))
 			->whereDate('created_at', '>', now()->subDays($max))
 			->count();
 			->count();
 
 
-		if($contact >= 2) {
+		if($contact >= $max) {
 			return redirect()->back()->with('error', 'You have recently sent a message. Please try again later.');
 			return redirect()->back()->with('error', 'You have recently sent a message. Please try again later.');
 		}
 		}