From 9fce4b69de39e596220353a3817834c55a61a5dc Mon Sep 17 00:00:00 2001 From: merdan Date: Tue, 11 Feb 2020 14:11:31 +0500 Subject: [PATCH] pagination on events list and filter by end date --- app/Models/Event.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/Event.php b/app/Models/Event.php index 501b5b64..bc5871c6 100644 --- a/app/Models/Event.php +++ b/app/Models/Event.php @@ -493,6 +493,7 @@ ICSTemplate; public function scopeOnLive($query, $start_date = null, $end_date = null){ //if date is null carbon creates now date instance //todo what if only end date is null?? + dd($start_date,$end_date); if(!empty($start_date) && !empty($end_date)) { $query->where('start_date','<',$end_date)