Laravel version update
Laravel version update
This commit is contained in:
		| @@ -40,15 +40,40 @@ class Repository implements ArrayAccess, ConfigContract | ||||
|     /** | ||||
|      * Get the specified configuration value. | ||||
|      * | ||||
|      * @param  string  $key | ||||
|      * @param  array|string  $key | ||||
|      * @param  mixed   $default | ||||
|      * @return mixed | ||||
|      */ | ||||
|     public function get($key, $default = null) | ||||
|     { | ||||
|         if (is_array($key)) { | ||||
|             return $this->getMany($key); | ||||
|         } | ||||
|  | ||||
|         return Arr::get($this->items, $key, $default); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Get many configuration values. | ||||
|      * | ||||
|      * @param  array  $keys | ||||
|      * @return array | ||||
|      */ | ||||
|     public function getMany($keys) | ||||
|     { | ||||
|         $config = []; | ||||
|  | ||||
|         foreach ($keys as $key => $default) { | ||||
|             if (is_numeric($key)) { | ||||
|                 list($key, $default) = [$default, null]; | ||||
|             } | ||||
|  | ||||
|             $config[$key] = Arr::get($this->items, $key, $default); | ||||
|         } | ||||
|  | ||||
|         return $config; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Set a given configuration value. | ||||
|      * | ||||
| @@ -58,11 +83,9 @@ class Repository implements ArrayAccess, ConfigContract | ||||
|      */ | ||||
|     public function set($key, $value = null) | ||||
|     { | ||||
|         if (is_array($key)) { | ||||
|             foreach ($key as $innerKey => $innerValue) { | ||||
|                 Arr::set($this->items, $innerKey, $innerValue); | ||||
|             } | ||||
|         } else { | ||||
|         $keys = is_array($key) ? $key : [$key => $value]; | ||||
|  | ||||
|         foreach ($keys as $key => $value) { | ||||
|             Arr::set($this->items, $key, $value); | ||||
|         } | ||||
|     } | ||||
|   | ||||
| @@ -2,7 +2,7 @@ | ||||
|     "name": "illuminate/config", | ||||
|     "description": "The Illuminate Config package.", | ||||
|     "license": "MIT", | ||||
|     "homepage": "http://laravel.com", | ||||
|     "homepage": "https://laravel.com", | ||||
|     "support": { | ||||
|         "issues": "https://github.com/laravel/framework/issues", | ||||
|         "source": "https://github.com/laravel/framework" | ||||
| @@ -14,10 +14,9 @@ | ||||
|         } | ||||
|     ], | ||||
|     "require": { | ||||
|         "php": ">=5.5.9", | ||||
|         "illuminate/contracts": "5.2.*", | ||||
|         "illuminate/filesystem": "5.2.*", | ||||
|         "illuminate/support": "5.2.*" | ||||
|         "php": ">=7.0", | ||||
|         "illuminate/contracts": "5.5.*", | ||||
|         "illuminate/support": "5.5.*" | ||||
|     }, | ||||
|     "autoload": { | ||||
|         "psr-4": { | ||||
| @@ -26,8 +25,11 @@ | ||||
|     }, | ||||
|     "extra": { | ||||
|         "branch-alias": { | ||||
|             "dev-master": "5.2-dev" | ||||
|             "dev-master": "5.5-dev" | ||||
|         } | ||||
|     }, | ||||
|     "config": { | ||||
|         "sort-packages": true | ||||
|     }, | ||||
|     "minimum-stability": "dev" | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Manish Verma
					Manish Verma