src/Prettus/Repository/Generators/Generator.php
public function getConfigGeneratorClassPath($class, $directoryPath = false)
    {
        switch ($class) {
            case ('models' === $class):
                $path = config('repository.generator.paths.models', 'Entities');
                break;
            case ('repositories' === $class):
                $path = config('repository.generator.paths.repositories', 'Repositories');
                break;
            case ('interfaces' === $class):
                $path = config('repository.generator.paths.interfaces', 'Repositories');
                break;
            case ('presenters' === $class):
                $path = config('repository.generator.paths.presenters', 'Presenters');
                break;
            case ('transformers' === $class):
                $path = config('repository.generator.paths.transformers', 'Transformers');
                break;
            case ('validators' === $class):
                $path = config('repository.generator.paths.validators', 'Validators');
                break;
            case ('controllers' === $class):
                $path = config('repository.generator.paths.controllers', 'Http\Controllers');
                break;
            case ('provider' === $class):
                $path = config('repository.generator.paths.provider', 'RepositoryServiceProvider');
                break;
            case ('criteria' === $class):
                $path = config('repository.generator.paths.criteria', 'Criteria');
                break;
            default:
                $path = '';
        }

        if ($directoryPath) {
            $path = str_replace('\\', '/', $path);
        } else {
            $path = str_replace('/', '\\', $path);
        }


        return $path;
    }
public function getConfigGeneratorClassPath($class, $directoryPath = false)
    {
        switch ($class) {
            case ('models' === $class):
                $path = config('repository.generator.paths.models', 'Entities');
                break;
            case ('repositories' === $class):
                $path = config('repository.generator.paths.repositories', 'Repositories');
                break;
            case ('interfaces' === $class):
                $path = config('repository.generator.paths.interfaces', 'Repositories');
                break;
            case ('presenters' === $class):
                $path = config('repository.generator.paths.presenters', 'Presenters');
                break;
            case ('transformers' === $class):
                $path = config('repository.generator.paths.transformers', 'Transformers');
                break;
            case ('validators' === $class):
                $path = config('repository.generator.paths.validators', 'Validators');
                break;
            case ('controllers' === $class):
                $path = config('repository.generator.paths.controllers', 'Http\Controllers');
                break;
            case ('provider' === $class):
                $path = config('repository.generator.paths.provider', 'RepositoryServiceProvider');
                break;
            case ('criteria' === $class):
                $path = config('repository.generator.paths.criteria', 'Criteria');
                break;
            default:
                $path = '';
        }

        if ($directoryPath) {
            $path = str_replace('\\', '/', $path);
        } else {
            $path = str_replace('/', '\\', $path);
        }


        return $path;
    }
public function getConfigGeneratorClassPath ( $ class , $ directoryPath = false ) { switch ( $ class ) { case ( 'models' === $ class ) : $ path = config ( 'repository.generator.paths.models' , 'Entities' ) ; break ; case ( 'repositories' === $ class ) : $ path = config ( 'repository.generator.paths.repositories' , 'Repositories' ) ; break ; case ( 'interfaces' === $ class ) : $ path = config ( 'repository.generator.paths.interfaces' , 'Repositories' ) ; break ; case ( 'presenters' === $ class ) : $ path = config ( 'repository.generator.paths.presenters' , 'Presenters' ) ; break ; case ( 'transformers' === $ class ) : $ path = config ( 'repository.generator.paths.transformers' , 'Transformers' ) ; break ; case ( 'validators' === $ class ) : $ path = config ( 'repository.generator.paths.validators' , 'Validators' ) ; break ; case ( 'controllers' === $ class ) : $ path = config ( 'repository.generator.paths.controllers' , 'Http\Controllers' ) ; break ; case ( 'provider' === $ class ) : $ path = config ( 'repository.generator.paths.provider' , 'RepositoryServiceProvider' ) ; break ; case ( 'criteria' === $ class ) : $ path = config ( 'repository.generator.paths.criteria' , 'Criteria' ) ; break ; default : $ path = '' ; } if ( $ directoryPath ) { $ path = str_replace ( '\\' , '/' , $ path ) ; } else { $ path = str_replace ( '/' , '\\' , $ path ) ; } return $ path ; }
Get class-specific output paths.

@param $class

@return string
Get class - specific output paths .