/** * index * * @return \Xpressengine\Presenter\RendererInterface */ public function index() { $wheres = []; $orders = []; $paginate = ClaimLog::paginate(20); return XePresenter::make('index', ['action' => 'index', 'paginate' => $paginate]); }
/** * 신고 여부 * * @param string $targetId targetId * @param UserInterface $author user instance * @return bool */ public function has($targetId, UserInterface $author) { return ClaimLog::where('userId', $author->getId())->where('targetId', $targetId)->where('claimType', $this->claimType)->first() !== null; }