count problem fixed

This commit is contained in:
vedatakdogan 2020-12-18 19:13:37 +03:00
parent 97fff9bc9a
commit 390529e5fa

View File

@ -421,6 +421,7 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
return DB::table('advs_advs')
->whereDate('finish_at', '>=', date("Y-m-d H:i:s"))
->where('status', 'approved')
->whereNull('deleted_at')
->where('slug', '!=', '')
->where('cat' . $level, $catID)
->count();