Skip to content

Commit 8e98e4b

Browse files
committed
docs: improve sample code
1 parent 0a438b7 commit 8e98e4b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • user_guide_src/source/incoming/controllers

user_guide_src/source/incoming/controllers/006.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ public function product(int $id)
1717
];
1818

1919
if (! $this->validateData($data, $rule)) {
20-
// ...
20+
return view('store/product', [
21+
'errors' => $this->validator->getErrors(),
22+
]);
2123
}
2224

2325
// ...

0 commit comments

Comments
 (0)