Skip to content

Added Casts [Laravel 7]

Choose a tag to compare

@adrienleloup adrienleloup released this 29 Apr 13:55
· 338 commits to master since this release
9b99e43

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.