protected function replaceClassNameSingular(&$stub, $name)
    {
        $stub = str_replace(
            '[[DummyClassNameSingular]]', Str::singular($this->getNameInput()), $stub
        );

        return $this;
    }
protected function replaceClassNameSingular(&$stub, $name)
    {
        $stub = str_replace(
            '[[DummyClassNameSingular]]', Str::singular($this->getNameInput()), $stub
        );

        return $this;
    }
protected function replaceClassNameSingular ( & $ stub , $ name ) { $ stub = str_replace ( '[[DummyClassNameSingular]]' , Str :: singular ( $ this -> getNameInput ( ) ) , $ stub ) ; return $ this ; }
Replace the class name into singular form for the given stub.
Used in the model class name declaration in "service stub".

@param  string  $stub
@param  string  $name
@return $this
Replace the class name into singular form for the given stub . Used in the model class name declaration in service stub .