Пример #1
0
 /**
  * 提交.
  *
  * @param int           $id      id
  * @param UpdateRequest $request request
  *
  * @return Redirect
  */
 public function postUpdate(UpdateRequest $request, $id)
 {
     $this->accountRepository->update($id, $request);
     return redirect(admin_url('account'))->withMessage('修改成功!');
 }
Пример #2
0
 /**
  * 保存编辑后的公众号数据.
  *
  * @param \Illuminate\Http\Request $request
  * @param int                      $accountId
  *
  * @return \Illuminate\Http\Response
  */
 public function postEdit(UpdateRequest $request, $accountId)
 {
     $this->accountRepository->update($request->all(), $accountId);
     return success('修改成功!', user_url('/'));
 }
Пример #3
0
 public function postUpdate(UpdateRequest $request, $id)
 {
     $this->accountRepository->update($id, $request->all());
     return responseSuccess('修改成功', 'account/index');
 }