/** * Handle delete account request * * @return \Illuminate\Http\Response */ public function destroy() { $user = $this->auth->getUser(); $this->repo->destroy($user->id); event('UserDeleted', [$user]); return $this->respondDeleteSuccess(); }
/** * Remove the specified user from storage. * DELETE /users/{id} * * @param int $id * @return Response */ public function destroy($id) { $this->userRepository->destroy($id); Flash::message('User Deleted'); return Redirect()->route('users'); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $this->user_gestion->destroy($id); return redirect('user')->with('ok', trans('back/users.destroyed')); }
/** * 删除公众号. * * @param ineger $id 公众号iD */ public function getDestroy($id) { $this->userRepository->destroy($id); return responseSuccess('删除成功'); }