瀏覽代碼

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.');
 		}