New In Laravel 7 – e07 – Query Casts

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…

New In Laravel 7 - e07 - Query Casts

Source

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
https://foreign-devs.transistor.fm/subscribe

Documentation
https://laravel.com/docs/master/eloquent-mutators#custom-casts

For the best experience, follow along in our interactive school at https://www.coderstape.com

DigitalOcean Referral
https://m.do.co/c/7dce5364ef4d

It’s that time of the year again when we get new fresh features in Laravel. Let’s explore what is coming to the latest version of Laravel.