code: public function update($id)
      {
          try {
              $this->gateway->update($this->request, $id);
          } catch (ValidationException $e) {
              return back()->withErrors($e->getErrors())->withInput();
          }
          return redirect(route('entrust-gui::users.index'))
              ->withSuccess(trans('entrust-gui::users.updated'));
      }
docs: Update the specified resource in storage.
  PUT /roles/{id}
  
  @param int $id
  
  @return Response