code: public static function create(array $attributes = [])
      {
          $model = static::createInstance();
  
          if (array_key_exists('id', $attributes)) {
              $model->setId($attributes['id']);
          }
  
          $model->fill($attributes);
  
          $model->save();
  
          return $model;
      }
docs: Save a new model and return the instance.
  
  @param array $attributes
  @throws Exception
  @return static