style updates
This commit is contained in:
@@ -8,9 +8,29 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
final class DeploymentEnvironment extends Model
|
||||
{
|
||||
protected $guarded = [];
|
||||
protected function casts(): array { return ['variables' => 'encrypted:array', 'is_protected' => 'boolean']; }
|
||||
public function targets(): HasMany { return $this->hasMany(DeploymentTarget::class, 'environment_id'); }
|
||||
public function pipelines(): HasMany { return $this->hasMany(DeploymentPipeline::class, 'environment_id'); }
|
||||
public function releases(): HasMany { return $this->hasMany(DeploymentRelease::class, 'environment_id'); }
|
||||
public function healthChecks(): HasMany { return $this->hasMany(DeploymentHealthCheck::class, 'environment_id'); }
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return ['variables' => 'encrypted:array', 'is_protected' => 'boolean'];
|
||||
}
|
||||
|
||||
public function targets(): HasMany
|
||||
{
|
||||
return $this->hasMany(DeploymentTarget::class, 'environment_id');
|
||||
}
|
||||
|
||||
public function pipelines(): HasMany
|
||||
{
|
||||
return $this->hasMany(DeploymentPipeline::class, 'environment_id');
|
||||
}
|
||||
|
||||
public function releases(): HasMany
|
||||
{
|
||||
return $this->hasMany(DeploymentRelease::class, 'environment_id');
|
||||
}
|
||||
|
||||
public function healthChecks(): HasMany
|
||||
{
|
||||
return $this->hasMany(DeploymentHealthCheck::class, 'environment_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user