code: public function update($request, $id)
      {
          $model = $this->repository->update($request->all(), $id);
          $event_class = "Acoustep\EntrustGui\Events\\".ucwords($this->getModelName()).'UpdatedEvent';
          $event = new $event_class;
          $this->dispatcher->fire($event->setModel($model));
          return $model;
      }
docs: Update model
  
  @param Illuminate\Http\Request $request
  @param integer $id
  
  @return Illuminate\Database\Eloquent\Model