src/Laravel/Specification/GroupSpecificationEq.php
public function asScope($query)
    {
        if(is_array($this->val)){
            return $query->whereIn($this->getFieldName(), $this->val);
        }else{
            return $query->where($this->getFieldName(), '=', $this->val);
        }
    }
public function asScope($query)
    {
        if(is_array($this->val)){
            return $query->whereIn($this->getFieldName(), $this->val);
        }else{
            return $query->where($this->getFieldName(), '=', $this->val);
        }
    }
Checks scope

@param $query

@return mixed