feat(usermanagement): enhance user-branch relationship by syncing branches and adding timestamps

This commit is contained in:
Sholahuddin Al Ayubi
2025-12-12 11:08:36 +07:00
parent 0b28760f41
commit 8b51a4f039
3 changed files with 16 additions and 2 deletions

View File

@@ -24,7 +24,8 @@ class UserBranch extends Model
public function user()
{
return $this->belongsTo(User::class);
return $this->belongsTo(User::class)
->withTimestamps();
}
public function branch()