@@ -17,7 +17,6 @@ public static function install()
17
17
static ::updateStyles ();
18
18
static ::updateBootstrapping ();
19
19
static ::updateWelcomePage ();
20
- static ::updatePagination ();
21
20
static ::removeNodeModules ();
22
21
}
23
22
@@ -50,40 +49,33 @@ protected static function updateStyles()
50
49
$ filesystem ->delete (public_path ('js/app.js ' ));
51
50
$ filesystem ->delete (public_path ('css/app.css ' ));
52
51
53
- if (! $ filesystem ->isDirectory ($ directory = resource_path ('css ' ))) {
52
+ if (!$ filesystem ->isDirectory ($ directory = resource_path ('css ' ))) {
54
53
$ filesystem ->makeDirectory ($ directory , 0755 , true );
55
54
}
56
55
});
57
56
58
- copy (__DIR__ . '/tailwindcss-stubs/resources/css/app.css ' , resource_path ('css/app.css ' ));
57
+ copy (__DIR__ . '/tailwindcss-stubs/resources/css/app.css ' , resource_path ('css/app.css ' ));
59
58
}
60
59
61
60
protected static function updateBootstrapping ()
62
61
{
63
- copy (__DIR__ . '/tailwindcss-stubs/tailwind.config.js ' , base_path ('tailwind.config.js ' ));
62
+ copy (__DIR__ . '/tailwindcss-stubs/tailwind.config.js ' , base_path ('tailwind.config.js ' ));
64
63
65
- copy (__DIR__ . '/tailwindcss-stubs/webpack.mix.js ' , base_path ('webpack.mix.js ' ));
64
+ copy (__DIR__ . '/tailwindcss-stubs/webpack.mix.js ' , base_path ('webpack.mix.js ' ));
66
65
67
- copy (__DIR__ .'/tailwindcss-stubs/resources/js/bootstrap.js ' , resource_path ('js/bootstrap.js ' ));
68
- }
69
-
70
- protected static function updatePagination ()
71
- {
72
- (new Filesystem )->delete (resource_path ('views/vendor/paginate ' ));
73
-
74
- (new Filesystem )->copyDirectory (__DIR__ .'/tailwindcss-stubs/resources/views/vendor/pagination ' , resource_path ('views/vendor/pagination ' ));
66
+ copy (__DIR__ . '/tailwindcss-stubs/resources/js/bootstrap.js ' , resource_path ('js/bootstrap.js ' ));
75
67
}
76
68
77
69
protected static function updateWelcomePage ()
78
70
{
79
71
(new Filesystem )->delete (resource_path ('views/welcome.blade.php ' ));
80
72
81
- copy (__DIR__ . '/tailwindcss-stubs/resources/views/welcome.blade.php ' , resource_path ('views/welcome.blade.php ' ));
73
+ copy (__DIR__ . '/tailwindcss-stubs/resources/views/welcome.blade.php ' , resource_path ('views/welcome.blade.php ' ));
82
74
}
83
75
84
76
protected static function scaffoldController ()
85
77
{
86
- if (! is_dir ($ directory = app_path ('Http/Controllers/Auth ' ))) {
78
+ if (!is_dir ($ directory = app_path ('Http/Controllers/Auth ' ))) {
87
79
mkdir ($ directory , 0755 , true );
88
80
}
89
81
@@ -93,7 +85,7 @@ protected static function scaffoldController()
93
85
->each (function (SplFileInfo $ file ) use ($ filesystem ) {
94
86
$ filesystem ->copy (
95
87
$ file ->getPathname (),
96
- app_path ('Http/Controllers/Auth/ ' . Str::replaceLast ('.stub ' , '.php ' , $ file ->getFilename ()))
88
+ app_path ('Http/Controllers/Auth/ ' . Str::replaceLast ('.stub ' , '.php ' , $ file ->getFilename ()))
97
89
);
98
90
});
99
91
}
@@ -109,13 +101,13 @@ protected static function scaffoldAuth()
109
101
);
110
102
111
103
tap (new Filesystem , function ($ filesystem ) {
112
- $ filesystem ->copyDirectory (__DIR__ . '/tailwindcss-stubs/resources/views ' , resource_path ('views ' ));
104
+ $ filesystem ->copyDirectory (__DIR__ . '/tailwindcss-stubs/resources/views ' , resource_path ('views ' ));
113
105
114
106
collect ($ filesystem ->allFiles (base_path ('vendor/laravel/ui/stubs/migrations ' )))
115
107
->each (function (SplFileInfo $ file ) use ($ filesystem ) {
116
108
$ filesystem ->copy (
117
109
$ file ->getPathname (),
118
- database_path ('migrations/ ' . $ file ->getFilename ())
110
+ database_path ('migrations/ ' . $ file ->getFilename ())
119
111
);
120
112
});
121
113
});
@@ -126,7 +118,7 @@ protected static function compileControllerStub()
126
118
return str_replace (
127
119
'{{namespace}} ' ,
128
120
Container::getInstance ()->getNamespace (),
129
- file_get_contents (__DIR__ . '/tailwindcss-stubs/controllers/HomeController.stub ' )
121
+ file_get_contents (__DIR__ . '/tailwindcss-stubs/controllers/HomeController.stub ' )
130
122
);
131
123
}
132
124
}
0 commit comments