Laravel没有返回任何结果

Laravel没有返回任何结果,laravel,has-many-through,Laravel,Has Many Through,我有以下表格(每个表格都是建模的),其中有一个我需要绘制的关系,我选择了(为了简洁起见,只选择了相关的列): 请求.id通过用户存款进行关联。请求\u id 然后呢, 用户存款.id通过用户存款文件.f\u id 于是我写道: public function financialRequestDeposit(){ return $this->hasManyThrough( 'App\UserDepositFile', 'App\UserDeposit'

我有以下表格(每个表格都是建模的),其中有一个我需要绘制的关系,我选择了(为了简洁起见,只选择了相关的列):

请求.id
通过
用户存款进行关联。请求\u id

然后呢,

用户存款.id
通过
用户存款文件.f\u id

于是我写道:

public function financialRequestDeposit(){
    return $this->hasManyThrough(
        'App\UserDepositFile',
        'App\UserDeposit',
        'request_id',
        'f_id',
        'id',
        'id'
    );
}
尽管上面的代码看起来像一艘船的龙骨,但我得到的是一个空的项目数组,有什么原因吗

谢谢

从这里编辑>>>

控制器
dd($deposit=FinancialRequest::where('id',$id)->with(['financialRequestDeposit'])->first()

请发布模型代码以及访问模型的控制器。@Amandepsingh editedIs
$deposit
空/空?或
$deposit->financialRequestDeposit