有没有办法用Laravel创建组织CRUD树(OrgChart)
我有下列表格有没有办法用Laravel创建组织CRUD树(OrgChart),laravel,orgchart,Laravel,Orgchart,我有下列表格 'usertree' parentid | Child id | type 'parentid' and 'child id' are the 'users id' based on the 'user.type' admin, teacher,manager,student. are connected together type 1,2,3,4 | parentid | Child id | .................................
'usertree'
parentid | Child id | type
'parentid' and 'child id' are the 'users id' based on the 'user.type' admin, teacher,manager,student.
are connected together
type 1,2,3,4 | parentid | Child id |
.......................................................................
if type = 1 : admin to manager connection
if type = 2 : manager to teacher connection
if type = 3 : teacher to teacher connection
if type = 4 : teacher to student connection
'user table'
name | email | type | phone num
where
'user.type' admin, teacher,manager,student.
我想根据usertree中的类型条件为usertree表创建一个树,此时管理员可以看到整个连接并对其执行CRUD
有人能告诉我怎么做吗?还是一个在拉雷维尔的包裹
我想要实现的是这样的东西
https://imgur.com/a/ZxsXmcm