Laracademy\Generators\Commands\ModelFromTableCommand::replaceClassName PHP Метод

replaceClassName() публичный Метод

replaces the class name in the stub.
public replaceClassName ( string $stub, string $tableName ) : string
$stub string stub content
$tableName string the name of the table to make as the class
Результат string stub content
    public function replaceClassName($stub, $tableName)
    {
        return str_replace('{{class}}', str_singular(ucfirst($tableName)), $stub);
    }