code: public function create(array $attributes)
      {
          $defaults = ['roles' => []];
          $attributes = array_merge($defaults, $attributes);
          $model = parent::create($attributes);
          if (! in_array('Esensi\Model\Contracts\HashingModelInterface', class_implements($model))) {
              throw new Exception(
                  "User model must implement Esensi\Model\Contracts\HashingModelInterface.
                  Revert to 0.3.* or see upgrade guide for details."
              );
          }
          $model->roles()->sync($attributes['roles']);
          return $this->parserResult($model);
      }
docs: Create model
  
  @param array $attributes
  
  @return Model