public static function getHotArticle() { $posts = Posts::query()->where('deleted = 0 AND type = "blog"')->orderBy('numberReply DESC, modifiedAt DESC')->limit(7)->execute(); if ($posts->valid()) { return $posts; } return false; }
public static function getHotArticle() { $posts = Posts::query()->where('deleted = 0 AND type = "blog"')->orderBy('numberReply DESC, modifiedAt DESC')->limit(7)->execute(); if ($posts->valid()) { return $posts; } return false; }