mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 00:16:42 +00:00
roles
This commit is contained in:
1 parent
127d42d873
commit
b097842d01
45 files changed
+322
-158
No files matched your search
+5
-1
@@ -62,6 +62,10 @@ class Team extends BaseModel implements SendsDiscord, SendsEmail
|
||||
}
|
||||
public function members()
|
||||
{
|
||||
return $this->belongsToMany(User::class, 'team_user', 'team_id', 'user_id');
|
||||
return $this->belongsToMany(User::class, 'team_user', 'team_id', 'user_id')->withPivot('role');
|
||||
}
|
||||
public function invitations()
|
||||
{
|
||||
return $this->hasMany(TeamInvitation::class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user