diff --git a/src/Illuminate/Foundation/Console/Presets/Preset.php b/src/Illuminate/Foundation/Console/Presets/Preset.php index 99af6b6f4571..efa081757285 100644 --- a/src/Illuminate/Foundation/Console/Presets/Preset.php +++ b/src/Illuminate/Foundation/Console/Presets/Preset.php @@ -37,7 +37,8 @@ protected static function updatePackages($dev = true) $packages = json_decode(file_get_contents(base_path('package.json')), true); $packages[$configurationKey] = static::updatePackageArray( - array_key_exists($configurationKey, $packages) ? $packages[$configurationKey] : [] + array_key_exists($configurationKey, $packages) ? $packages[$configurationKey] : [], + $configurationKey ); ksort($packages[$configurationKey]);