Esempio n. 1
0
 public function isFollowedBy(User $otherUser)
 {
     $idsWhoOtherUserFollows = $otherUser->following()->lists('followed_id');
     return in_array($this->id, $idsWhoOtherUserFollows);
 }