code: protected function populateStub(string $stub, ?string $class = null): string
      {
          return str_replace('{class}', $this->getName($class), $stub);
      }
docs: Populate the place-holders in the seed stub.
  
  @param  string $stub
  @param string|null $class
  @return string