Added code to return the entire array to Arr::dot.
This commit is contained in:
parent
dfbd8e7950
commit
db5c61d50c
|
@ -37,6 +37,11 @@ public static function get($array, $key, $default = null)
|
|||
*/
|
||||
public static function dot($array, $key, $default = null)
|
||||
{
|
||||
if (is_null($key))
|
||||
{
|
||||
return $array;
|
||||
}
|
||||
|
||||
foreach (explode('.', $key) as $segment)
|
||||
{
|
||||
if ( ! isset($array[$segment]))
|
||||
|
|
Loading…
Reference in New Issue