Skip to content

Commit b6f61f8

Browse files
committed
Add comma for last item
Because the following `$model->save()` argument has trailing comma
1 parent 653dd62 commit b6f61f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

user_guide_src/source/tutorial/create_news_items.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ validation <../libraries/validation>` library to do this.
5151

5252
if ($this->request->getMethod() === 'post' && $this->validate([
5353
'title' => 'required|min_length[3]|max_length[255]',
54-
'body' => 'required'
54+
'body' => 'required',
5555
]))
5656
{
5757
$model->save([

0 commit comments

Comments
 (0)