Eloquent ORM 如何关联查询字段?
例如
url:api/book/1
需要输出:
{
title:'my book',
user_id:1,
user_name: shellus
}
如何取到这个user_name呢?
推荐文章: