src/Illuminate/Foundation/Console/ControllerMakeCommand.php
protected function parseRepository($repository)
    {
        if (preg_match('([^A-Za-z0-9_/\\\\])', $repository)) {
            throw new InvalidArgumentException('Repository name contains invalid characters.');
        }

        $repository = trim(str_replace('/', '\\', $repository), '\\');

        if (! Str::startsWith($repository, $rootNamespace = $this->laravel->getNamespace())) {
            $repository = $rootNamespace.'Repositories'.'\\'.$repository;
        }

        return $repository;
    }
protected function parseRepository($repository)
    {
        if (preg_match('([^A-Za-z0-9_/\\\\])', $repository)) {
            throw new InvalidArgumentException('Repository name contains invalid characters.');
        }

        $repository = trim(str_replace('/', '\\', $repository), '\\');

        if (! Str::startsWith($repository, $rootNamespace = $this->laravel->getNamespace())) {
            $repository = $rootNamespace.'Repositories'.'\\'.$repository;
        }

        return $repository;
    }
protected function parseRepository ( $ repository ) { if ( preg_match ( '([^A-Za-z0-9_/\\\\])' , $ repository ) ) { throw new InvalidArgumentException ( 'Repository name contains invalid characters.' ) ; } $ repository = trim ( str_replace ( '/' , '\\' , $ repository ) , '\\' ) ; if ( ! Str :: startsWith ( $ repository , $ rootNamespace = $ this -> laravel -> getNamespace ( ) ) ) { $ repository = $ rootNamespace . 'Repositories' . '\\' . $ repository ; } return $ repository ; }
Get the fully-qualified repository class name.

@param  string  $repository
@return string
Get the fully - qualified repository class name .