hasOne(BankAccount::class, 'worker_id', 'master_worker_id'); } public function workerInfo() { return $this->hasOne(MasterWorkerInfo::class, 'worker_id', 'master_worker_id'); } public function salaryItemPermanently() { return $this->hasMany(SalaryItemPermanently::class, 'permanently_settlement_id', 'id')->with(['workerInfo'])->append(['term_text']); } }