📅  最后修改于: 2022-03-11 14:54:19.285000             🧑  作者: Mango
代码示例1
/**
* Get the user's most recent order.
*/
public function latestOrder()
{
return $this->hasOne(Order::class)->latestOfMany();
}