Working with nested JSON in a Laravel model?
Used to mean verbose array access, constant merging, and offset warnings
Now in Laravel 12.19+:
✅ Use AsFluent cast
✅ No more manual merges
✅ No more “undefined offset” errors
✅ Just clean, expressive syntax
Back
•