diff --git a/src/AdminLTEPreset.php b/src/AdminLTEPreset.php index 6e0cff7..2b77caa 100644 --- a/src/AdminLTEPreset.php +++ b/src/AdminLTEPreset.php @@ -5,10 +5,8 @@ use Illuminate\Console\Command; use Illuminate\Container\Container; use Illuminate\Filesystem\Filesystem; -use Illuminate\Support\Str; use InfyOm\GeneratorHelpers\LaravelUtils; use Laravel\Ui\Presets\Preset; -use Symfony\Component\Finder\SplFileInfo; class AdminLTEPreset extends Preset { @@ -23,17 +21,18 @@ public function __construct(Command $command) /** * Update the given package array. * - * @param array $packages + * @param array $packages + * * @return array */ protected static function updatePackageArray(array $packages) { return [ - 'bootstrap' => '^4.0.0', - 'jquery' => '^3.2', - 'popper.js' => '^1.12', - 'admin-lte' => '^3.0', - ] + $packages; + 'bootstrap' => '^4.0.0', + 'jquery' => '^3.2', + 'popper.js' => '^1.12', + 'admin-lte' => '^3.0', + ] + $packages; } public function install() @@ -101,7 +100,6 @@ protected function scaffoldAuth() ); tap(new Filesystem(), function ($filesystem) { - $filesystem->copyDirectory(__DIR__.'/../adminlte-stubs/auth', resource_path('views/auth')); $filesystem->copyDirectory(__DIR__.'/../adminlte-stubs/layouts', resource_path('views/layouts')); $filesystem->copy(__DIR__.'/../adminlte-stubs/home.blade.php', resource_path('views/home.blade.php'));