mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #150 from openclassify/dia
show most viewed ads in the trending ads tab
This commit is contained in:
commit
3ce8308e23
@ -152,7 +152,7 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
||||
|
||||
public function popularAdvs()
|
||||
{
|
||||
return $this->getAdv()->where('popular_adv', 1)->paginate(2);
|
||||
return $this->getAdv()->orderBy('count_show_ad', 'desc')->limit(10)->get();
|
||||
}
|
||||
|
||||
public function advsofDay()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user