🔥 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.
Other tips:
🔥 Laravel Tip: Custom Polymorphic Types
Apr 7, 2022
🔥 Laravel tip: the `isDirty` method
Jan 28, 2022