belongsTo('App\LatestModel\Module\Form','_id','_id'); } public function staff() { return $this->belongsTo('App\LatestModel\Staff','installer_id','_id')->withTrashed(); } public function company() { return $this->belongsTo('App\LatestModel\Module\Company','contractor_id','_id')->withTrashed(); } public function docket() { return $this->hasOne('App\LatestModel\Module\Docket','work_order_id','wo')->withTrashed(); } }