public function replaceClassName($stub, $tableName) { return str_replace('{{class}}', str_singular(ucfirst($tableName)), $stub); }