Baum\Extensions\Eloquent\Model::getFreshInstance PHP Method

getFreshInstance() protected method

Returns a fresh instance from the database.
protected getFreshInstance ( ) : Node
return Baum\Node
    protected function getFreshInstance()
    {
        if ($this->areSoftDeletesEnabled()) {
            return static::withTrashed()->find($this->getKey());
        }
        return static::find($this->getKey());
    }