getArrayableAttributes() protected method

Get an attribute array of all arrayable attributes.
protected getArrayableAttributes ( ) : array
return array
Example #1
0
 /**
  * Get an attribute array of all arrayable attributes.
  *
  * @return array
  */
 protected function getArrayableAttributes()
 {
     $arrayable_attributes = parent::getArrayableAttributes();
     foreach ($this->getMutatedAttributes() as $key) {
         $arrayable_attributes[$key] = $this->{$key};
     }
     return $arrayable_attributes;
 }