public function update(array $data) { $model = $this->model->find($data['id']); $model->update($data); return true; }