We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fae081f + b6f61f8 commit e8be139Copy full SHA for e8be139
user_guide_src/source/tutorial/create_news_items.rst
@@ -31,7 +31,6 @@ the slug from our title in the model. Create a new view at
31
<textarea name="body"></textarea><br />
32
33
<input type="submit" name="submit" value="Create news item" />
34
-
35
</form>
36
37
There are probably only two things here that look unfamiliar. The
@@ -52,7 +51,7 @@ validation <../libraries/validation>` library to do this.
52
51
53
if ($this->request->getMethod() === 'post' && $this->validate([
54
'title' => 'required|min_length[3]|max_length[255]',
55
- 'body' => 'required'
+ 'body' => 'required',
56
]))
57
{
58
$model->save([
0 commit comments