Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Commit e397350

Browse files
committed
wip
1 parent c681694 commit e397350

File tree

11 files changed

+5
-5
lines changed

11 files changed

+5
-5
lines changed

src/LaravelPresetServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ class LaravelPresetServiceProvider extends ServiceProvider
1111
public function boot()
1212
{
1313
UiCommand::macro('tailwindcss', function ($command) {
14-
LaravelPreset::install();
14+
LightViews::install();
1515

1616
$command->info('Tailwind CSS scaffolding installed successfully.');
1717

1818
if ($command->option('auth')) {
19-
LaravelPreset::installAuth();
19+
LightViews::installAuth();
2020

2121
$command->info('Tailwind CSS auth scaffolding installed successfully.');
2222
}

src/LaravelPreset.php renamed to src/LightViews.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Laravel\Ui\Presets\Preset;
1010
use Symfony\Component\Finder\SplFileInfo;
1111

12-
class LaravelPreset extends Preset
12+
class LightViews extends Preset
1313
{
1414
public static function install()
1515
{
@@ -75,7 +75,7 @@ protected static function updatePagination()
7575
{
7676
(new Filesystem)->delete(resource_path('views/vendor/paginate'));
7777

78-
(new Filesystem)->copyDirectory(__DIR__.'/stubs/resources/views/vendor/pagination', resource_path('views/vendor/pagination'));
78+
(new Filesystem)->copyDirectory(__DIR__.'/stubs/resources/light/views/vendor/pagination', resource_path('views/vendor/pagination'));
7979
}
8080

8181
protected static function scaffoldController()
@@ -106,7 +106,7 @@ protected static function scaffoldAuth()
106106
);
107107

108108
tap(new Filesystem, function ($filesystem) {
109-
$filesystem->copyDirectory(__DIR__.'/stubs/resources/views', resource_path('views'));
109+
$filesystem->copyDirectory(__DIR__.'/stubs/resources/light/views', resource_path('views'));
110110

111111
collect($filesystem->allFiles(base_path('vendor/laravel/ui/stubs/migrations')))
112112
->each(function (SplFileInfo $file) use ($filesystem) {

0 commit comments

Comments
 (0)