The new recommended way to use Flexible fields is with casts, introduced in Laravel 7!
This is not a breaking change. The previous way, using the HasFlexible
trait, is unchanged.
View a quick rundown of how it works in the readme, or view the full docs.