src/Console/Commands/AbstractGeneratorCommand.php
protected function replaceResourceType(&$stub)
    {
        $resource = $this->getResourceName();
        $stub = str_replace('dummyResourceType', Str::dasherize($resource), $stub);

        return $this;
    }
protected function replaceResourceType(&$stub)
    {
        $resource = $this->getResourceName();
        $stub = str_replace('dummyResourceType', Str::dasherize($resource), $stub);

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

@param mixed $stub
@return $this
Replace the value of the resource type string .