src/Scaffold/ModelCreator.php
protected function replacePrimaryKey(&$stub, $keyName)
    {
        $modelKey = $keyName == 'id' ? '' : "protected \$primaryKey = '$keyName';\n";

        $stub = str_replace('DummyModelKey', $modelKey, $stub);

        return $this;
    }
protected function replacePrimaryKey(&$stub, $keyName)
    {
        $modelKey = $keyName == 'id' ? '' : "protected \$primaryKey = '$keyName';\n";

        $stub = str_replace('DummyModelKey', $modelKey, $stub);

        return $this;
    }
protected function replacePrimaryKey ( & $ stub , $ keyName ) { $ modelKey = $ keyName == 'id' ? '' : "protected \$primaryKey = '$keyName';\n" ; $ stub = str_replace ( 'DummyModelKey' , $ modelKey , $ stub ) ; return $ this ; }
Replace primarykey dummy.

@param string $stub
@param string $keyName

@return $this
Replace primarykey dummy .