public function toArray() { $attributes = $this->attributesToArray(); return array_merge($attributes, $this->relationsToArray()); }