Eloquent ORM中如何添加with语法
with recursive tab as (
select * from subjects where id = 11
union all
select s.* from subjects as s inner join tab on tab.id = s.parent_id
)
select * from tab;
像这样的语句如何通过Eloquent ORM实现
No Comments