We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf9b56d commit 5c67255Copy full SHA for 5c67255
1 file changed
user_guide_src/source/tutorial/create_news_items/002.php
@@ -24,8 +24,8 @@ public function create()
24
25
// Checks whether the submitted data passed the validation rules.
26
if (! $this->validateData($post, [
27
- 'title' => 'required|min_length[3]|max_length[255]',
28
- 'body' => 'required|min_length[10]|max_length[5000]',
+ 'title' => 'required|max_length[255]|min_length[3]',
+ 'body' => 'required|max_length[5000]|min_length[10]',
29
])) {
30
// The validation fails, so returns the form.
31
return view('templates/header', ['title' => 'Create a news item'])
0 commit comments