lostinfo/hyperf-nestedset

Nested Set Model for Hyperf 2.0 and up

Installs: 226

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 1

Open Issues: 0

pkg:composer/lostinfo/hyperf-nestedset

dev-master 2021-03-09 14:56 UTC

This package is auto-updated.

Last update: 2025-10-10 00:57:09 UTC


README

kalnoy/nestedset

\Lostinfo\Nestedset\NestedSet::columns($table);

\Lostinfo\Nestedset\NestedSet::dropColumns($table);
class Categories extends Model
{
    use \Lostinfo\Nestedset\NodeTrait;

    public function saving(Saving $event)
    {
        return self::onSaving($this);
    }

    public function deleted(Deleted $event)
    {
        self::onDeleted($this);
    }

    public function restoring(Restoring $event)
    {
        self::onRestoring($this);
    }

    public function restored(Restored $event)
    {
        self::onRestored($this);
    }
}