src/Console/Commands/MakeRepositoryCommand.php
protected function replaceModelClass(&$stub, $name)
    {
        $names = explode('\\', $name);
        $class = array_pop($names);

        $stub = str_replace('DummyModelClass', $class, $stub);

        return $this;
    }
protected function replaceModelClass(&$stub, $name)
    {
        $names = explode('\\', $name);
        $class = array_pop($names);

        $stub = str_replace('DummyModelClass', $class, $stub);

        return $this;
    }
protected function replaceModelClass ( & $ stub , $ name ) { $ names = explode ( '\\' , $ name ) ; $ class = array_pop ( $ names ) ; $ stub = str_replace ( 'DummyModelClass' , $ class , $ stub ) ; return $ this ; }
Replace the probable model class name for the given stub.

@param  string $stub
@param  string $name
@return $this
Replace the probable model class name for the given stub .