code: protected function replaceRecord(&$stub)
      {
          $resource = $this->getResourceName();
          $stub = str_replace('DummyRecord', Str::classify(str_singular($resource)), $stub);
  
          return $this;
      }
docs: Replace the value of the model class name.
  
  @param $stub
  @return $this