diff --git a/src/CastsEnums.php b/src/CastsEnums.php index 3eb6250..c00ab64 100644 --- a/src/CastsEnums.php +++ b/src/CastsEnums.php @@ -81,7 +81,11 @@ public function setAttribute($key, $value) */ public function attributesToArray() { - return $this->addEnumAttributesToArray(parent::attributesToArray()); + return $this->getArrayableItems( + $this->addEnumAttributesToArray( + parent::attributesToArray() + ) + ); } /**