We have two things brand new Laravel 7 things to cover in this episode related to query casts. The first is the new ability to have a dedicated class for database query casting. This will clean up your models and give you reusability. The second, is the new ability to cast columns even when using raw queries or even custom query casts.
Foreign Devs Podcast