Beispiel #1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update(PageRequest $request, $id)
 {
     //
     $data = $request->all();
     $this->content->update($id, $data, 'page');
     return redirect()->route('admin.page.index')->with('message', '修改单页成功!');
 }
 /**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update(FragmentRequest $request, $id)
 {
     //
     $data = $request->all();
     $this->content->update($id, $data, 'fragment');
     return redirect()->route('admin.fragment.index')->with('message', '修改碎片成功!');
 }