Fixes #909 again, because math is super hard
This commit is contained in:
@@ -171,7 +171,7 @@ public function freeSeat()
|
||||
return License::whereNotNull('expiration_date')
|
||||
->whereNull('deleted_at')
|
||||
->whereRaw(DB::raw( 'DATE_SUB(`expiration_date`,INTERVAL '.$days.' DAY) <= DATE(NOW()) ' ))
|
||||
->where('expiration_date','<',date("Y-m-d"))
|
||||
->where('expiration_date','>',date("Y-m-d"))
|
||||
->orderBy('expiration_date', 'ASC')
|
||||
->get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user