public function toArray() { $array = array(); foreach ($this->fillable as $key) { $array[$key] = $this->{$key}; } return $array; }