public function replaceNames($template)
    {
        $name = $this->getParsedNameInput();
        $service = $this->getParsedServiceInput();

        $name = str_plural($name);

        $plural = [
            '{{pluralCamel}}',
            '{{pluralSlug}}',
            '{{pluralSnake}}',
            '{{pluralClass}}',
        ];

        $singular = [
            '{{singularCamel}}',
            '{{singularSlug}}',
            '{{singularSnake}}',
            '{{singularClass}}',

            '{{singularServiceCamel}}',
            '{{singularServiceSlug}}',
            '{{singularServiceSnake}}',
            '{{singularServiceClass}}',
        ];

        $replacePlural = [
            camel_case($name),
            str_slug($name),
            snake_case($name),
            ucfirst(camel_case($name)),
        ];

        $replaceSingular = [
            str_singular(camel_case($name)),
            str_singular(str_slug($name)),
            str_singular(snake_case($name)),
            str_singular(ucfirst(camel_case($name))),

            camel_case($service),
            str_slug($service),
            snake_case($service),
            ucfirst(camel_case($service)),
        ];



        $template = str_replace($plural, $replacePlural, $template);
        $template = str_replace($singular, $replaceSingular, $template);
        $template = str_replace('{{Class}}', ucfirst(camel_case($name)), $template);

        return $template;
    }
public function replaceNames($template)
    {
        $name = $this->getParsedNameInput();
        $service = $this->getParsedServiceInput();

        $name = str_plural($name);

        $plural = [
            '{{pluralCamel}}',
            '{{pluralSlug}}',
            '{{pluralSnake}}',
            '{{pluralClass}}',
        ];

        $singular = [
            '{{singularCamel}}',
            '{{singularSlug}}',
            '{{singularSnake}}',
            '{{singularClass}}',

            '{{singularServiceCamel}}',
            '{{singularServiceSlug}}',
            '{{singularServiceSnake}}',
            '{{singularServiceClass}}',
        ];

        $replacePlural = [
            camel_case($name),
            str_slug($name),
            snake_case($name),
            ucfirst(camel_case($name)),
        ];

        $replaceSingular = [
            str_singular(camel_case($name)),
            str_singular(str_slug($name)),
            str_singular(snake_case($name)),
            str_singular(ucfirst(camel_case($name))),

            camel_case($service),
            str_slug($service),
            snake_case($service),
            ucfirst(camel_case($service)),
        ];



        $template = str_replace($plural, $replacePlural, $template);
        $template = str_replace($singular, $replaceSingular, $template);
        $template = str_replace('{{Class}}', ucfirst(camel_case($name)), $template);

        return $template;
    }
public function replaceNames ( $ template ) { $ name = $ this -> getParsedNameInput ( ) ; $ service = $ this -> getParsedServiceInput ( ) ; $ name = str_plural ( $ name ) ; $ plural = [ '{{pluralCamel}}' , '{{pluralSlug}}' , '{{pluralSnake}}' , '{{pluralClass}}' , ] ; $ singular = [ '{{singularCamel}}' , '{{singularSlug}}' , '{{singularSnake}}' , '{{singularClass}}' , '{{singularServiceCamel}}' , '{{singularServiceSlug}}' , '{{singularServiceSnake}}' , '{{singularServiceClass}}' , ] ; $ replacePlural = [ camel_case ( $ name ) , str_slug ( $ name ) , snake_case ( $ name ) , ucfirst ( camel_case ( $ name ) ) , ] ; $ replaceSingular = [ str_singular ( camel_case ( $ name ) ) , str_singular ( str_slug ( $ name ) ) , str_singular ( snake_case ( $ name ) ) , str_singular ( ucfirst ( camel_case ( $ name ) ) ) , camel_case ( $ service ) , str_slug ( $ service ) , snake_case ( $ service ) , ucfirst ( camel_case ( $ service ) ) , ] ; $ template = str_replace ( $ plural , $ replacePlural , $ template ) ; $ template = str_replace ( $ singular , $ replaceSingular , $ template ) ; $ template = str_replace ( '{{Class}}' , ucfirst ( camel_case ( $ name ) ) , $ template ) ; return $ template ; }
Replace names with pattern.

@param $template
@return $this
Replace names with pattern .