Esempio n. 1
0
 /**
  * To Array
  *
  * Wraps the default toArray method so that key names are
  * converted to camelCase for API handling.
  *
  * @return array
  */
 public function toArray()
 {
     $data = parent::toArray();
     return Config::get('c4tech.jsonify_output', true) ? $this->convertToCamelCase($data) : $data;
 }