Skip to content
This repository was archived by the owner on Jun 22, 2022. It is now read-only.

Commit bd0f7ae

Browse files
committed
feat: Laravel 6 support added
1 parent bd501ea commit bd0f7ae

File tree

2 files changed

+4
-30
lines changed

2 files changed

+4
-30
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.2.5",
20-
"illuminate/support": "^7.0",
21-
"infyomlabs/laravel-generator-helpers": "^2.0",
22-
"laravel/ui": "^2.0"
19+
"php": "^7.2",
20+
"illuminate/support": "^6.0",
21+
"infyomlabs/laravel-generator-helpers": "^1.0",
22+
"laravel/ui": "^1.0"
2323
},
2424
"autoload": {
2525
"psr-4": {

src/CoreUIPreset.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)