'boolean', 'config' => 'encrypted:array', ]; public function workspace(): BelongsTo { return $this->belongsTo(Workspace::class); } public function rules(): BelongsToMany { return $this->belongsToMany(AlertRule::class, 'alert_rule_destinations') ->using(AlertRuleDestination::class) ->withPivot(['id', 'workspace_id']) ->withTimestamps(); } public function deliveries(): HasMany { return $this->hasMany(AlertDelivery::class); } }