feat: shared environments

This commit is contained in:
Andras Bacsai committed 2024-01-23 17:13:23 +01:00
1 parent abcc004953
commit fb478c79b3
42 files changed
+495 -78

No files matched your search

+3 -1
View File
@@ -70,7 +70,9 @@ class Team extends Model implements SendsDiscord, SendsEmail
);
}
public function environment_variables() {
return $this->hasMany(SharedEnvironmentVariable::class)->whereNull('project_id')->whereNull('environment_id');
}
public function members()
{
return $this->belongsToMany(User::class, 'team_user', 'team_id', 'user_id')->withPivot('role');