fill($attributes); } /** * Convert the model instance to JSON. * * @param int $options * * @return string */ public function toJson($options = 0) { return json_encode($this->toArray(), $options); } /** * Convert the model instance to an array. * * @return array */ public function toArray() { return $this->attributesToArray(); } /** * Convert the model to its string representation. * * @return string */ public function __toString() { return $this->toJson(); } }