laravel-castable-data-transfer-object icon indicating copy to clipboard operation
laravel-castable-data-transfer-object copied to clipboard

data-transfer-object is abandoned

Open andrenunes01 opened this issue 2 years ago • 4 comments

Message in composer: package spatie/data-transfer-object is abandoned, you should avoid using it. Use spatie/laravel-data instead.

Do you intend to do this migration of packages?

andrenunes01 avatar Nov 10 '22 20:11 andrenunes01

spatie/laravel-data is already Eloquent castable so I don't think it makes sense to migrate this package.

jessarcher avatar Nov 10 '22 23:11 jessarcher

Thank you for your help. I'll take a look at the documentation.

andrenunes01 avatar Nov 11 '22 00:11 andrenunes01

Hi @jessarcher, congratulations on your work, you are outstanding on the web.

I still don't understand why it doesn't make sense to migrate to a package that is not deprecated. But I wanted to see if you could update your article to Laravel 10, perhaps using an example from spatie/laravel-data, as your article is very well positioned in Google and is a reference on how to do things. Regards

Promter avatar Mar 29 '23 21:03 Promter

Hi @Promter, thanks for your kind words!

In my mind, it doesn't make sense to migrate this package to Spatie's Laravel Data package because it is already castable out of the box, making the features of this package redundant.

This package is now just for those not ready to migrate yet.

That's a very good point about my article. I have added a note to the section on Spatie's DTO package referring people to Laravel Data instead. If I get time, I'll update it more thoroughly.

jessarcher avatar Apr 08 '23 00:04 jessarcher