5
5
use Illuminate \Console \Command ;
6
6
use Illuminate \Container \Container ;
7
7
use Illuminate \Filesystem \Filesystem ;
8
- use Illuminate \Support \Str ;
9
8
use InfyOm \GeneratorHelpers \LaravelUtils ;
10
9
use Laravel \Ui \Presets \Preset ;
11
- use Symfony \Component \Finder \SplFileInfo ;
12
10
13
11
class AdminLTEPreset extends Preset
14
12
{
@@ -23,17 +21,18 @@ public function __construct(Command $command)
23
21
/**
24
22
* Update the given package array.
25
23
*
26
- * @param array $packages
24
+ * @param array $packages
25
+ *
27
26
* @return array
28
27
*/
29
28
protected static function updatePackageArray (array $ packages )
30
29
{
31
30
return [
32
- 'bootstrap ' => '^4.0.0 ' ,
33
- 'jquery ' => '^3.2 ' ,
34
- 'popper.js ' => '^1.12 ' ,
35
- 'admin-lte ' => '^3.0 ' ,
36
- ] + $ packages ;
31
+ 'bootstrap ' => '^4.0.0 ' ,
32
+ 'jquery ' => '^3.2 ' ,
33
+ 'popper.js ' => '^1.12 ' ,
34
+ 'admin-lte ' => '^3.0 ' ,
35
+ ] + $ packages ;
37
36
}
38
37
39
38
public function install ()
@@ -101,7 +100,6 @@ protected function scaffoldAuth()
101
100
);
102
101
103
102
tap (new Filesystem (), function ($ filesystem ) {
104
-
105
103
$ filesystem ->copyDirectory (__DIR__ .'/../adminlte-stubs/auth ' , resource_path ('views/auth ' ));
106
104
$ filesystem ->copyDirectory (__DIR__ .'/../adminlte-stubs/layouts ' , resource_path ('views/layouts ' ));
107
105
$ filesystem ->copy (__DIR__ .'/../adminlte-stubs/home.blade.php ' , resource_path ('views/home.blade.php ' ));
0 commit comments