payment check

This commit is contained in:
merdan 2020-01-09 17:54:13 +05:00
parent 20d60e3474
commit b1950f8eb6
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ ICSTemplate;
public function scopeOnLive($query, $start_date = null, $end_date = null){
//if date is null carbon creates now date instance
if(isset($start_date) && isset($end_date))
if(!empty($start_date) && !empty($end_date))
{
dd($query);
$query->where('start_date','<',$end_date)