pagination on events list and filter by end date

This commit is contained in:
merdan 2020-02-11 14:11:31 +05:00
parent 5cf61e0471
commit 9fce4b69de
1 changed files with 1 additions and 0 deletions

View File

@ -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)