示例#1
0
 /**
  * 신고 여부
  *
  * @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;
 }