update CawanganLelong model relation

This commit is contained in:
Nur Izzati Zulkifli
2022-10-27 12:52:20 +08:00
parent d73485f170
commit b3b4532372
+2 -1
View File
@@ -32,7 +32,8 @@ class CawanganLelong extends Model
}
public function cawangan()
{
return $this->hasOne(Cawangan::class, 'id');
return $this->hasOne(Cawangan::class, 'id', 'caw_id');
}
}