src/Illuminate/Foundation/Console/ControllerMakeCommand.php
protected function buildRepositoryReplacements(array $replace)
    {
        $repository = $this->parseRepository($this->option('repository'));

        if (empty(trim($repository, $this->laravel->getNamespace(). 'Repositories\\'))) {
            $repository = $this->parseRepository($this->ask('witch repository do you want to injected to the controller?'));
        }

        if (! class_exists($repository)) {
            if ($this->confirm("A {$repository} repository does not exist. Do you want to generate it?", true)) {
                $this->call('make:repository', [
                        'name' => $repository,
                        '--model' => $this->modelClass
                    ]);
            }
        }

        return array_merge($replace, [
            'DummyFullRepositoryClass' => $repository,
            'DummyRepositoryClass' => class_basename($repository),
            'DummyRepositoryVariable' => lcfirst(class_basename($repository)),
        ]);
    }
protected function buildRepositoryReplacements(array $replace)
    {
        $repository = $this->parseRepository($this->option('repository'));

        if (empty(trim($repository, $this->laravel->getNamespace(). 'Repositories\\'))) {
            $repository = $this->parseRepository($this->ask('witch repository do you want to injected to the controller?'));
        }

        if (! class_exists($repository)) {
            if ($this->confirm("A {$repository} repository does not exist. Do you want to generate it?", true)) {
                $this->call('make:repository', [
                        'name' => $repository,
                        '--model' => $this->modelClass
                    ]);
            }
        }

        return array_merge($replace, [
            'DummyFullRepositoryClass' => $repository,
            'DummyRepositoryClass' => class_basename($repository),
            'DummyRepositoryVariable' => lcfirst(class_basename($repository)),
        ]);
    }
protected function buildRepositoryReplacements ( array $ replace ) { $ repository = $ this -> parseRepository ( $ this -> option ( 'repository' ) ) ; if ( empty ( trim ( $ repository , $ this -> laravel -> getNamespace ( ) . 'Repositories\\' ) ) ) { $ repository = $ this -> parseRepository ( $ this -> ask ( 'witch repository do you want to injected to the controller?' ) ) ; } if ( ! class_exists ( $ repository ) ) { if ( $ this -> confirm ( "A {$repository} repository does not exist. Do you want to generate it?" , true ) ) { $ this -> call ( 'make:repository' , [ 'name' => $ repository , '--model' => $ this -> modelClass ] ) ; } } return array_merge ( $ replace , [ 'DummyFullRepositoryClass' => $ repository , 'DummyRepositoryClass' => class_basename ( $ repository ) , 'DummyRepositoryVariable' => lcfirst ( class_basename ( $ repository ) ) , ] ) ; }
Build the repository replacement values.

@param  array  $replace
@return array
Build the repository replacement values .