This commit is contained in:
Andras Bacsai
2023-06-02 12:34:45 +02:00
parent ea5c1b9e12
commit 39d37010a3
62 changed files with 618 additions and 596 deletions

View File

@@ -60,4 +60,8 @@ class Team extends BaseModel implements SendsDiscord, SendsEmail
{
return $this->hasMany(PrivateKey::class);
}
public function members()
{
return $this->belongsToMany(User::class, 'team_user', 'team_id', 'user_id');
}
}