-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Attribute hydration has methods for both simple conversion - deserializeUsing() - and complex hydration - fillUsing().
In comparison, attribute serialization only has support for simple conversion - serializeUsing().
It'd be nice to have support for complex serialization (which would receive the model that's being serialized in the closure too) while defining the fields in the schema. That way we don't need to add extra Eloquent accessors on our models or create a dedicated resource class if we have just one custom attribute field.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request