src/Traits/Likeable.php
public function scopeWhereDislikedBy(Builder $query, $userId = null)
    {
        return app(LikeableServiceContract::class)
            ->scopeWhereLikedBy($query, LikeType::DISLIKE, $userId);
    }
public function scopeWhereDislikedBy(Builder $query, $userId = null)
    {
        return app(LikeableServiceContract::class)
            ->scopeWhereLikedBy($query, LikeType::DISLIKE, $userId);
    }
public function scopeWhereDislikedBy ( Builder $ query , $ userId = null ) { return app ( LikeableServiceContract :: class ) -> scopeWhereLikedBy ( $ query , LikeType :: DISLIKE , $ userId ) ; }
Fetch records that are disliked by a given user id.

@param \Illuminate\Database\Eloquent\Builder $query
@param int|null $userId
@return \Illuminate\Database\Eloquent\Builder

@throws \Cog\Likeable\Exceptions\LikerNotDefinedException
Fetch records that are disliked by a given user id .