/**
  * Update the specified resource in storage.
  *
  * @param  int $id
  * @param EditUserAttributeRequest $request
  * @return Response
  */
 public function update($id, EditFlagRequest $request)
 {
     $flag = Flag::find($id);
     $flag->name = $this->request->get('name');
     $flag->color = $this->request->get('color');
     $flag->save();
     flash()->success('The flag has been edited successfully');
     return redirect()->back();
 }