🔥 Laravel Tip: Map vs Transform in collections

Sep 13, 2022

The map method creates a new collection while the transform method replaces the item with the new value in the current collection.
tip-image-0