How to handle the case where i need data transformer after the DTO class is instanced? #206
-
I have a multi-select field on my website and use a DTO to organize the data transferring. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
hi @dpetrovaliev You are always can do it manually : |
Beta Was this translation helpful? Give feedback.
hi @dpetrovaliev
if you are sure that transformer isn't fit your case
You are always can do it manually :
https://spatie.be/docs/laravel-data/v2/as-a-data-transfer-object/creating-a-data-object#content-magical-creation