app/Console/Commands/ControllerMakeCommand.php
protected function getParentViewName($name)
    {
        $name = Str::replaceFirst($this->getDefaultNamespace(trim($this->rootNamespace(), '\\')).'\\', '', $name);
        $name = Str::replaceLast('Controller', '', $name);
        $names = explode('\\', $name);
        foreach ($names as $key => $value) {
            $names[$key] = snake_case($value);
        }
        if (count($names) >= 2) {
            array_pop($names);
            $parent = str_plural(array_pop($names));
            array_push($names, $parent);
        }
        $name = implode('.', $names);

        return str_replace('\\', '.', $name);
    }
protected function getParentViewName($name)
    {
        $name = Str::replaceFirst($this->getDefaultNamespace(trim($this->rootNamespace(), '\\')).'\\', '', $name);
        $name = Str::replaceLast('Controller', '', $name);
        $names = explode('\\', $name);
        foreach ($names as $key => $value) {
            $names[$key] = snake_case($value);
        }
        if (count($names) >= 2) {
            array_pop($names);
            $parent = str_plural(array_pop($names));
            array_push($names, $parent);
        }
        $name = implode('.', $names);

        return str_replace('\\', '.', $name);
    }
protected function getParentViewName ( $ name ) { $ name = Str :: replaceFirst ( $ this -> getDefaultNamespace ( trim ( $ this -> rootNamespace ( ) , '\\' ) ) . '\\' , '' , $ name ) ; $ name = Str :: replaceLast ( 'Controller' , '' , $ name ) ; $ names = explode ( '\\' , $ name ) ; foreach ( $ names as $ key => $ value ) { $ names [ $ key ] = snake_case ( $ value ) ; } if ( count ( $ names ) >= 2 ) { array_pop ( $ names ) ; $ parent = str_plural ( array_pop ( $ names ) ) ; array_push ( $ names , $ parent ) ; } $ name = implode ( '.' , $ names ) ; return str_replace ( '\\' , '.' , $ name ) ; }
Get the view name.

@param  string  $name
@return string
Get the view name .