code: public function create($request)
      {
          $data = $request->all();
          $user = $this->repository->create($data);
  
          $event_class = "Acoustep\EntrustGui\Events\\".ucwords($this->getModelName()).'CreatedEvent';
          $event = new $event_class;
          $this->dispatcher->fire($event->setModel($user));
          return $user;
      }
docs: Create a user
  
  @param Illuminate\Http\Request $request
  
  @return Illuminate\Database\Eloquent\Model