public function scopeWithoutNode($query, $node) { return $query->where($node->getKeyName(), '!=', $node->getKey()); }