소스 검색

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