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