@@ -73,7 +73,6 @@ public function installAuth()
7373 $ this ->ensureDirectoriesExist ($ viewsPath );
7474
7575 $ this ->scaffoldAuth ();
76- $ this ->scaffoldController ();
7776 }
7877
7978 protected function ensureDirectoriesExist ($ viewsPath )
@@ -91,23 +90,6 @@ protected function ensureDirectoriesExist($viewsPath)
9190 }
9291 }
9392
94- protected function scaffoldController ()
95- {
96- if (!is_dir ($ directory = app_path ('Http/Controllers/Auth ' ))) {
97- mkdir ($ directory , 0755 , true );
98- }
99-
100- $ filesystem = new Filesystem ;
101-
102- collect ($ filesystem ->allFiles (base_path ('vendor/laravel/ui/stubs/Auth ' )))
103- ->each (function (SplFileInfo $ file ) use ($ filesystem ) {
104- $ filesystem ->copy (
105- $ file ->getPathname (),
106- app_path ('Http/Controllers/Auth/ ' .Str::replaceLast ('.stub ' , '.php ' , $ file ->getFilename ()))
107- );
108- });
109- }
110-
11193 protected function scaffoldAuth ()
11294 {
11395 file_put_contents (app_path ('Http/Controllers/HomeController.php ' ), $ this ->compileHomeControllerStub ());
@@ -123,14 +105,6 @@ protected function scaffoldAuth()
123105 $ filesystem ->copyDirectory (__DIR__ .'/../coreui-stubs/auth ' , resource_path ('views/auth ' ));
124106 $ filesystem ->copyDirectory (__DIR__ .'/../coreui-stubs/layouts ' , resource_path ('views/layouts ' ));
125107 $ filesystem ->copy (__DIR__ .'/../coreui-stubs/home.blade.php ' , resource_path ('views/home.blade.php ' ));
126-
127- collect ($ filesystem ->allFiles (base_path ('vendor/laravel/ui/stubs/migrations ' )))
128- ->each (function (SplFileInfo $ file ) use ($ filesystem ) {
129- $ filesystem ->copy (
130- $ file ->getPathname (),
131- database_path ('migrations/ ' .$ file ->getFilename ())
132- );
133- });
134108 });
135109 }
136110
0 commit comments