src/Console/Commands/AbstractGeneratorCommand.php
protected function replaceRecord(&$stub)
    {
        $resource = $this->getResourceName();
        $stub = str_replace('DummyRecord', Str::classify(str_singular($resource)), $stub);

        return $this;
    }
protected function replaceRecord(&$stub)
    {
        $resource = $this->getResourceName();
        $stub = str_replace('DummyRecord', Str::classify(str_singular($resource)), $stub);

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

@param $stub
@return $this
Replace the value of the model class name .