Adding prepareForValidation method #324
Unanswered
robert-abram
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @abrampl 👍 as I understand it should work the same as public static function prepareForPipeline(Collection $properties) : Collection
{
$properties->put('metadata', $properties->only(['release_year', 'producer']));
return $properties;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
prepareForValidation
change only data before validation and data are intact butprepareForPipeline
change data. Is there any option to prepare date before validation, similar to prepareForValidation https://laravel.com/docs/9.x/validation#preparing-input-for-validation in FormRequest ?Beta Was this translation helpful? Give feedback.
All reactions