Skip to content

Commit

Permalink
Merge pull request #8537 from kenjis/docs-uploaded_files-validate
Browse files Browse the repository at this point in the history
docs: use validateData() instead of validate() in uploaded_files
  • Loading branch information
kenjis authored Feb 11, 2024
2 parents 286f1c4 + b7ef20e commit 206d1ae
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 206d1ae

Please sign in to comment.