Exemplo n.º 1
0
 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();
 }
Exemplo n.º 3
0
 public static function GetPopularPost($arr_postid, $skip)
 {
     $posts = Post::whereIn('post_id', $arr_postid)->skip($skip)->take(8)->get();
     return $posts;
 }