Update ContactController

pull/1424/head
Daniel Supernault 6 years ago
parent a7dbae6bc4
commit 5d3317d255
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

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

Loading…
Cancel
Save