lostinfo / hyperf-nestedset
Nested Set Model for Hyperf 2.0 and up
dev-master
2021-03-09 14:56 UTC
Requires
- php: >=7.2
- hyperf/database: ^2.0
- hyperf/utils: ^2.0
This package is auto-updated.
Last update: 2024-12-09 23:06:25 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);
}
}