/**
  * Update the specified resource in storage.
  *
  * @param \TypiCMS\Modules\Attributes\Models\Attribute            $attribute
  * @param \TypiCMS\Modules\Attributes\Http\Requests\FormRequest $request
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function update(AttributeGroup $group, Attribute $attribute, FormRequest $request)
 {
     $data = $request->all();
     $data['attribute_group_id'] = $group->id;
     $this->repository->update($data);
     return $this->redirect($request, $attribute);
 }
 /**
  * Update the specified resource in storage.
  *
  * @param \TypiCMS\Modules\Attributes\Models\AttributeGroup     $attribute
  * @param \TypiCMS\Modules\Attributes\Http\Requests\FormRequest $request
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function update(AttributeGroup $group, FormRequest $request)
 {
     $this->repository->update($request->all());
     return $this->redirect($request, $group);
 }