@@ -73,7 +73,6 @@ public function installAuth()
73
73
$ this ->ensureDirectoriesExist ($ viewsPath );
74
74
75
75
$ this ->scaffoldAuth ();
76
- $ this ->scaffoldController ();
77
76
}
78
77
79
78
protected function ensureDirectoriesExist ($ viewsPath )
@@ -91,23 +90,6 @@ protected function ensureDirectoriesExist($viewsPath)
91
90
}
92
91
}
93
92
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
-
111
93
protected function scaffoldAuth ()
112
94
{
113
95
file_put_contents (app_path ('Http/Controllers/HomeController.php ' ), $ this ->compileHomeControllerStub ());
@@ -123,14 +105,6 @@ protected function scaffoldAuth()
123
105
$ filesystem ->copyDirectory (__DIR__ .'/../coreui-stubs/auth ' , resource_path ('views/auth ' ));
124
106
$ filesystem ->copyDirectory (__DIR__ .'/../coreui-stubs/layouts ' , resource_path ('views/layouts ' ));
125
107
$ 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
- });
134
108
});
135
109
}
136
110
0 commit comments