refactor(branch): clean up formatting and structure in Branch model

This commit is contained in:
Sholahuddin Al Ayubi
2025-12-11 17:22:45 +07:00
parent 0526a1bb05
commit b8cf5e550f

View File

@@ -40,4 +40,10 @@
{
return $this->hasMany(Branch::class, 'parent_id');
}
public function users()
{
return $this->belongsToMany(Modules\Usermanagement\Models\User::class, 'user_branches', 'branch_id', 'user_id');
}
}