Link:  https://sandulat.com/mapping-json-columns-to-dtos-with-laravels-new-custom-casts

Sandulat shows us how to use custom casts, a new feature of Laravel 7 to get full autocomplete and type checking of JSON columns.

laravel custom casts