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
Requires
- php: >=7.2
- hyperf/database: ^2.0
- hyperf/utils: ^2.0
This package is auto-updated.
Last update: 2025-10-10 00:57:09 UTC
README
\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);
}
}