/**
  * Persist the form.
  *
  * @return User
  */
 public function persist()
 {
     return $this->repository->create($this->request->all());
 }
 /**
  * @param UserRepository $repository
  * @param int            $id
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function postDelete(UserRepository $repository, $id)
 {
     /** @var User $user */
     $user = $repository->delete($id);
     return $this->smartRedirect()->with('success', trans($this->wrapNamespace('core.messages.user.deleted'), ['name' => $user->getName()]));
 }