'array', 'retention_months' => 'integer']; } public static function current(): self { return self::query()->first() ?? self::query()->create(['recipients' => []]); } /** * @return list */ public function recipientList(): array { return array_values(array_filter( (array) $this->recipients, fn (mixed $address): bool => is_string($address) && filter_var($address, FILTER_VALIDATE_EMAIL) !== false, )); } }