如何获得 has one 的对象

How to get the object for has one

我有一个模型请求,它有一个类别外键和一组买家

class Request extends Model {

// TABLE NAME
protected $table = 'requests';

// MASS ASSIGMENTS
protected $guarded = ['id'];

// FK
public function category()
{
    return $this->hasOne('App\Objects\Category', 'id');
}

// FK
public function buyers()
{
    return $this->hasMany('App\Objects\RequestBuyer');
}


}

我有一个查询,它获取包含买家集合的所有请求记录

$requests = Request::with('buyers')->get();

这个 return 一个 json 包含买家集合的所有记录,但我想在此 json 回复中包含类别详细信息。

我该如何完成?

做如下操作,

$requests = Request::with('buyers', 'category')->get();

请问RequestCategory有什么关系?