📜  从软删除 laravel 中获取关系数据 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:34.131000             🧑  作者: Mango

代码示例2
I already fixed it. In my model history I add withtrashed.

public function history()
{
    return $this->hasMany(History::class)->withTrashed();
}