Explorar el Código

Update ContactController

Daniel Supernault hace 6 años
padre
commit
5d3317d255
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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))
 			->count();
 
-		if($contact >= 2) {
+		if($contact >= $max) {
 			return redirect()->back()->with('error', 'You have recently sent a message. Please try again later.');
 		}