src/Services/LikeableService.php
public function collectDislikersOf(LikeableContract $likeable)
    {
        $userModel = $this->resolveUserModel();

        $likersIds = $likeable->dislikes->pluck('user_id');

        return $userModel::whereKey($likersIds)->get();
    }
public function collectDislikersOf(LikeableContract $likeable)
    {
        $userModel = $this->resolveUserModel();

        $likersIds = $likeable->dislikes->pluck('user_id');

        return $userModel::whereKey($likersIds)->get();
    }
public function collectDislikersOf ( LikeableContract $ likeable ) { $ userModel = $ this -> resolveUserModel ( ) ; $ likersIds = $ likeable -> dislikes -> pluck ( 'user_id' ) ; return $ userModel :: whereKey ( $ likersIds ) -> get ( ) ; }
Get collection of users who disliked entity.

@param \Cog\Likeable\Contracts\Likeable $likeable
@return \Illuminate\Support\Collection
Get collection of users who disliked entity .