/**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update(SettingTypeRequest $request, $id)
 {
     $data = $request->all();
     $setting_type = $this->setting->update($id, $data, '');
     //注意,第三个参数不为'setting',取的是SettingType模型
     return redirect()->route('admin.setting_type.index')->with('message', '修改动态设置分组成功!');
 }
 /**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update(SettingRequest $request, $id)
 {
     $data = $request->all();
     $setting = $this->setting->update($id, $data, 'setting');
     return redirect()->route('admin.setting_type.show', $setting->type_id)->with('message', '修改动态设置成功!');
 }