src/Listify.php
public function scopeListifyScope(Builder $query)
    {
        if (method_exists($this, 'cleanListifyScopedQuery')) {
            $this->cleanListifyScopedQuery($query);
        }

        return $query->whereRaw($this->listifyScopeCondition());
    }
public function scopeListifyScope(Builder $query)
    {
        if (method_exists($this, 'cleanListifyScopedQuery')) {
            $this->cleanListifyScopedQuery($query);
        }

        return $query->whereRaw($this->listifyScopeCondition());
    }
public function scopeListifyScope ( Builder $ query ) { if ( method_exists ( $ this , 'cleanListifyScopedQuery' ) ) { $ this -> cleanListifyScopedQuery ( $ query ) ; } return $ query -> whereRaw ( $ this -> listifyScopeCondition ( ) ) ; }
Applies the listify scope to a query builder instance.
Eloquent scope method.

@param Builder|QueryBuilder $query
@return Builder|QueryBuilder
Applies the listify scope to a query builder instance . Eloquent scope method .