🔥 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](https://res.cloudinary.com/dpmeu3otn/image/upload/v1666556898/tips/u3zwhtawdnm0apn1wcir.jpg)
Other tips:
🔥 Laravel Tip: orderByPivot
Nov 4, 2022