Skip to content

Commit

Permalink
docs: use validateData() instead of validate()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Feb 11, 2024
1 parent d7449f6 commit b7ef20e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user_guide_src/source/libraries/uploaded_files/002.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function upload()
],
],
];
if (! $this->validate($validationRule)) {
if (! $this->validateData([], $validationRule)) {
$data = ['errors' => $this->validator->getErrors()];

return view('upload_form', $data);
Expand Down

0 comments on commit b7ef20e

Please sign in to comment.