protected function prefixWheres(Builder $query, $prefix)
    {
        if (is_array($query->getQuery()->wheres))
        {
            $query->getQuery()->wheres = array_map(function($where) use($prefix)
            {
                $column = $where['column'];
                $where['column'] = ($this->isId($column)) ? $column : $prefix .'.'. $column;
                return $where;
            }, $query->getQuery()->wheres);
        }
    }
protected function prefixWheres(Builder $query, $prefix)
    {
        if (is_array($query->getQuery()->wheres))
        {
            $query->getQuery()->wheres = array_map(function($where) use($prefix)
            {
                $column = $where['column'];
                $where['column'] = ($this->isId($column)) ? $column : $prefix .'.'. $column;
                return $where;
            }, $query->getQuery()->wheres);
        }
    }
protected function prefixWheres ( Builder $ query , $ prefix ) { if ( is_array ( $ query -> getQuery ( ) -> wheres ) ) { $ query -> getQuery ( ) -> wheres = array_map ( function ( $ where ) use ( $ prefix ) { $ column = $ where [ 'column' ] ; $ where [ 'column' ] = ( $ this -> isId ( $ column ) ) ? $ column : $ prefix . '.' . $ column ; return $ where ; } , $ query -> getQuery ( ) -> wheres ) ; } }
Prefix where clauses' columns.
@param  \Vinelab\NeoEloquent\Eloquent\Builder $query
@param  string  $prefix
@return void
Prefix where clauses columns .