This commit is contained in:
2025-11-04 21:07:23 +05:00
parent 84c4a584a0
commit 310590010c
13 changed files with 119 additions and 24 deletions

View File

@@ -12,11 +12,21 @@ class UserBranch extends Pivot
protected $table = 'branch_user';
/**
* Branch
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<Branch, $this>
*/
public function branch(): BelongsTo
{
return $this->belongsTo(Branch::class);
}
/**
* User
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<User, $this>
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);