extraAlpineAttributes[] = $attributes; } else { $this->extraAlpineAttributes = [$attributes]; } return $this; } public function getExtraAlpineAttributes(): array { $temporaryAttributeBag = new ComponentAttributeBag(); foreach ($this->extraAlpineAttributes as $extraAlpineAttributes) { $temporaryAttributeBag = $temporaryAttributeBag->merge($this->evaluate($extraAlpineAttributes)); } return $temporaryAttributeBag->getAttributes(); } public function getExtraAlpineAttributeBag(): ComponentAttributeBag { return new ComponentAttributeBag($this->getExtraAlpineAttributes()); } }