Преглед на файлове

Update ContactController

Daniel Supernault преди 6 години
родител
ревизия
5d3317d255
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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.');
 		}