示例#1
0
 public function hasLikedStatus(Status $status)
 {
     return (bool) $status->likes()->where('user_id', $this->id)->count();
 }