Esempio n. 1
0
 /**
  * 참여 리스트
  *
  * @param $id
  * @param $option
  * @param $perPage
  * @return \Illuminate\Pagination\LengthAwarePaginator
  */
 public function paginate($id, $option, $perPage)
 {
     $wheres = ['targetId' => $id, 'counterName' => self::COUNTER_NAME, 'counterOption' => $option];
     $orders = ['createdAt' => 'desc'];
     return $this->counter->paginate($wheres, $orders, $perPage);
 }