Baum\Node::scopeWithoutNode PHP 메소드

scopeWithoutNode() 공개 메소드

Query scope which extracts a certain node object from the current query expression.
public scopeWithoutNode ( $query, $node ) : Builder
리턴 Illuminate\Database\Query\Builder
    public function scopeWithoutNode($query, $node)
    {
        return $query->where($node->getKeyName(), '!=', $node->getKey());
    }