求教sql转为laravel 模型的写法
select a.*, (select b.name from b where b.a_id = a.id order by id desc limit 0, 1) as name from a
以上想用laravel 的模型写法 求教
推荐文章: