diff --git a/src/Form.php b/src/Form.php index f9bfccd..4cce8ce 100644 --- a/src/Form.php +++ b/src/Form.php @@ -245,10 +245,12 @@ public static function validate(array $data, array $rules) public static function getDotNotatedValue($array, $key) { $keys = explode('.', $key); + foreach ($keys as $k) { if (!isset($array[$k])) { return null; } + $array = $array[$k]; }