/** * Update json contents from array data. * * @param array $data * * @return bool */ public function update(array $data) { $this->attributes = new Collection(array_merge($this->attributes->toArray(), $data)); return $this->save(); }