update pengguna tkr hasone semula

This commit is contained in:
Nur Izzati Zulkifli
2022-11-15 14:36:15 +08:00
parent 6353fce47d
commit f3c58e3034
4 changed files with 14 additions and 11 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ class User extends Authenticatable
public function cawangan()
{
return $this->hasMany(Cawangan::class, 'caw_code' , 'kodcaw');
return $this->hasOne(Cawangan::class, 'caw_code' , 'kodcaw');
}
}