public static function getPostByPlaceId($place_id) { if (isset($place_id)) { return Post::whereIn('place_id', $place_id)->get(); } }
/** * حذف دسته ای از پستها * * @param string $active * @param array $ids * @return void */ public function deleteBatch($ids) { $this->model->whereIn("pst_id", $ids)->delete(); }
public static function GetPopularPost($arr_postid, $skip) { $posts = Post::whereIn('post_id', $arr_postid)->skip($skip)->take(8)->get(); return $posts; }