src/Auth/Console/AuthMakeCommand.php
protected function exportControllers()
    {
        foreach ($this->controllers as $pathIn => $pathOut) {
            if ($this->files->exists($controller = app_path('Http/Controllers/'.$pathOut))
                && ! $this->option('force')) {
                if (! $this->confirm("The [{$pathOut}] controller already exists. Do you want to overwrite it?")) {
                    continue;
                }
            }

            $this->files->put(
                $controller,
                $this->compileStub($this->files->get(__DIR__.'/stubs/make/controllers/'.$pathIn))
            );
        }
    }
protected function exportControllers()
    {
        foreach ($this->controllers as $pathIn => $pathOut) {
            if ($this->files->exists($controller = app_path('Http/Controllers/'.$pathOut))
                && ! $this->option('force')) {
                if (! $this->confirm("The [{$pathOut}] controller already exists. Do you want to overwrite it?")) {
                    continue;
                }
            }

            $this->files->put(
                $controller,
                $this->compileStub($this->files->get(__DIR__.'/stubs/make/controllers/'.$pathIn))
            );
        }
    }
protected function exportControllers ( ) { foreach ( $ this -> controllers as $ pathIn => $ pathOut ) { if ( $ this -> files -> exists ( $ controller = app_path ( 'Http/Controllers/' . $ pathOut ) ) && ! $ this -> option ( 'force' ) ) { if ( ! $ this -> confirm ( "The [{$pathOut}] controller already exists. Do you want to overwrite it?" ) ) { continue ; } } $ this -> files -> put ( $ controller , $ this -> compileStub ( $ this -> files -> get ( __DIR__ . '/stubs/make/controllers/' . $ pathIn ) ) ) ; } }
Export authentication default controllers.
Export authentication default controllers .