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实现


Vote Vote Cancel Collect Collect Cancel

<< 上一篇: Lumen 抛出_GET,_COOKIE变量不存在

>> 下一篇: laravel 中软删除如何设置deleted_at为int,默认为0