src/Scaffold/ModelCreator.php
protected function replaceTable(&$stub, $name)
    {
        $class = str_replace($this->getNamespace($name).'\\', '', $name);

        $table = Str::plural(strtolower($class)) !== $this->tableName ? "protected \$table = '$this->tableName';\n" : '';

        $stub = str_replace('DummyModelTable', $table, $stub);

        return $this;
    }
protected function replaceTable(&$stub, $name)
    {
        $class = str_replace($this->getNamespace($name).'\\', '', $name);

        $table = Str::plural(strtolower($class)) !== $this->tableName ? "protected \$table = '$this->tableName';\n" : '';

        $stub = str_replace('DummyModelTable', $table, $stub);

        return $this;
    }
protected function replaceTable ( & $ stub , $ name ) { $ class = str_replace ( $ this -> getNamespace ( $ name ) . '\\' , '' , $ name ) ; $ table = Str :: plural ( strtolower ( $ class ) ) !== $ this -> tableName ? "protected \$table = '$this->tableName';\n" : '' ; $ stub = str_replace ( 'DummyModelTable' , $ table , $ stub ) ; return $ this ; }
Replace Table name dummy.

@param string $stub
@param string $name

@return $this
Replace Table name dummy .