Add DTO
#709
Mohammad-Alavi
started this conversation in
Ideas
Add `DTO`
#709
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since removing Transporters for various reasons, I tried to fill its place with another DTO implementation.
For now the best candidate is Laravel-data package by spatie IMO.
But, to use this package we have to change some of the ways we do things right now, namely:
https://spatie.be/docs/laravel-data/v3/advanced-usage/validation-attributes
https://spatie.be/docs/laravel-data/v3/as-a-resource/from-data-to-resource
Your thoughts are important on this.
There are a lot of pros in using DTO:
Tell me about the cons. I can't think of many atm.
The only con I can think of for now is that it adds another package/documentation for us and newcomers to read/learn 👀
Beta Was this translation helpful? Give feedback.
All reactions