whereUserId($profile_id) ->whereFilterableType('App\Profile') ->whereFilterType('mute') ->pluck('filterable_id'); } public function blockedUserIds($profile_id) { return $this->whereUserId($profile_id) ->whereFilterableType('App\Profile') ->whereFilterType('block') ->pluck('filterable_id'); } }