We can now create custom Eloquent cast types. This, as an example, would allow you to transform one or more attributes into a dedicated type (like a value object). The key is to prepare a class that implements the
Published on Mar 5th, 2020.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.