public function update($id, array $attributes)
    {
        $model = $this->model->findOrFail($id);

        $this->validation()->validate('update', array_merge($attributes, [$this->model->getKeyName() => $id]));

        $model->fill($attributes);

        $model->save();

        return $model;
    }