Laravel devs, level up your JSON attribute handling with this gem! 💎
Use AsArrayObject and AsCollection casts for smarter JSON manipulation. Perfect for directly modifying array offsets without PHP errors.
Pro tip: AsCollection cast gives you full Laravel Collection power!
www.harrisrafto.eu/enhancing-json-attribute-handling-in-laravel-with-asarrayobject-and-ascollection-casts #Laravel
Back