From 8d4cb7b4209ed039fb7e1cdd26b063e5343bd71a Mon Sep 17 00:00:00 2001 From: ping-yee <611077101@mail.nknu.edu.tw> Date: Mon, 30 Oct 2023 18:31:01 +0800 Subject: [PATCH 1/2] docs: change the user guide. --- user_guide_src/source/libraries/validation/010.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_guide_src/source/libraries/validation/010.php b/user_guide_src/source/libraries/validation/010.php index 0951f582c882..2646fcc32b99 100644 --- a/user_guide_src/source/libraries/validation/010.php +++ b/user_guide_src/source/libraries/validation/010.php @@ -2,5 +2,5 @@ // Fred Flintsone & Wilma $validation->setRules([ - 'contacts.*.name' => 'required|max_length[60]', + 'contacts.friends.*.name' => 'required|max_length[60]', ]); From ad99597a07af39a0f655fa023ec7d576309ef461 Mon Sep 17 00:00:00 2001 From: ping-yee <611077101@mail.nknu.edu.tw> Date: Mon, 30 Oct 2023 21:14:52 +0800 Subject: [PATCH 2/2] docs: modify the source code of user guide. --- user_guide_src/source/libraries/validation/009.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/user_guide_src/source/libraries/validation/009.php b/user_guide_src/source/libraries/validation/009.php index 7e321e9664ff..841b4972664f 100644 --- a/user_guide_src/source/libraries/validation/009.php +++ b/user_guide_src/source/libraries/validation/009.php @@ -6,12 +6,7 @@ * 'contacts' => [ * 'name' => 'Joe Smith', * 'friends' => [ - * [ - * 'name' => 'Fred Flinstone', - * ], - * [ - * 'name' => 'Wilma', - * ], + * 'name' => 'Fred Flinstone', * ] * ] * ] @@ -22,7 +17,7 @@ 'contacts.name' => 'required|max_length[60]', ]); -// Fred Flintsone & Wilma +// Fred Flintsone $validation->setRules([ 'contacts.friends.name' => 'required|max_length[60]', ]);