feat(usermanagement): enhance user-branch relationship by syncing branches and adding timestamps
This commit is contained in:
@@ -110,6 +110,7 @@ class User extends Authenticatable
|
||||
|
||||
public function branches()
|
||||
{
|
||||
return $this->belongsToMany(Branch::class, 'user_branches', 'user_id', 'branch_id');
|
||||
return $this->belongsToMany(Branch::class, 'user_branches', 'user_id', 'branch_id')
|
||||
->withTimestamps();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user