src/Consoles/BaseCommand.php
public function fileNameCaseConvention($name, $case = 'studly')
    {
        if (is_array($case)) {
            $case = data_get($case, 'case', 'studly');
        }

        switch ($case) {
            case 'studly':
                return studly_case($name);
            case 'lower':
                return strtolower($name);
            case 'upper':
                return strtoupper($name);
            case 'snake':
                return snake_case($name);
            case 'title':
                return title_case($name);
            case 'camel':
                return camel_case($name);
            case 'kebab':
                return kebab_case($name);
        }
        
        return $name;
    }
public function fileNameCaseConvention($name, $case = 'studly')
    {
        if (is_array($case)) {
            $case = data_get($case, 'case', 'studly');
        }

        switch ($case) {
            case 'studly':
                return studly_case($name);
            case 'lower':
                return strtolower($name);
            case 'upper':
                return strtoupper($name);
            case 'snake':
                return snake_case($name);
            case 'title':
                return title_case($name);
            case 'camel':
                return camel_case($name);
            case 'kebab':
                return kebab_case($name);
        }
        
        return $name;
    }
public function fileNameCaseConvention ( $ name , $ case = 'studly' ) { if ( is_array ( $ case ) ) { $ case = data_get ( $ case , 'case' , 'studly' ) ; } switch ( $ case ) { case 'studly' : return studly_case ( $ name ) ; case 'lower' : return strtolower ( $ name ) ; case 'upper' : return strtoupper ( $ name ) ; case 'snake' : return snake_case ( $ name ) ; case 'title' : return title_case ( $ name ) ; case 'camel' : return camel_case ( $ name ) ; case 'kebab' : return kebab_case ( $ name ) ; } return $ name ; }
File name case convention

@param $name
@param string $case
@return string
File name case convention