#Laravel should include soon a great PR that will help a lot of devs mapping collection items manually.

It's a simple `AsCollection::map(Item::class)` and `AsCollection::map([Item::class, 'fromArray])` cast.

It creates Collections and maps into a class instance, or a callable. No need to make your own anymore.

Confident it will land on Laravel 12.10 anytime this week.

#PHP #Programming #Coding #Code #SoftwareDevelopment #WebDevelopment #WebDev #Frameworks #Framework #Software