code: protected function replaceResourceType(&$stub)
      {
          $resource = $this->getResourceName();
          $stub = str_replace('dummyResourceType', Str::dasherize($resource), $stub);
  
          return $this;
      }
docs: Replace the value of the resource type string.
  
  @param mixed $stub
  @return $this