jiaxincui/closure-table
Closure table implementation for Laravel Eloquent models, adding fast hierarchical tree queries and operations—ancestors, descendants, siblings, moving nodes—without recursive queries. Simple trait integration with support for multiple trees.
support laravel 13
修复字符ID导致sql错误 #32
修复 toTree() 方法返回空 #31
升级至 3.0.0
laravel 支持至 9.0 - 11.0
支持 字符id (如uuid)
规范了方法签名和返回值
优化了部分方法的内部逻辑
加入 sql 语句输入参数预检以实现对字符id的支持
support laravel 9.0
Upgrade illuminate/database to version 6.20.26 or late
root节点调用 getRoot()方法返回自身
修复 getRoot() 因排序不确定导致获取到不准确的 root
修复parentColumn拼写错误
更新readme
修复 getTree() 当参数 columns 不包含 parent 列时生成树失败。
修复根结点获取Siblings的错误
if has restored method
注意:2.1.0开始getTree()方法返回的数据有所变化,多了一个[]包裹,以支持multi tree
判断是否有软删除事件restored
2.0.5
fix queryBesides() if this is root
加入addChild($collection)传入collection判断
moveTo()添加判断传入节点是否孤立节点
1.0.0
How can I help you explore Laravel packages today?