When using the beforeCreate (and probably some of the other hooks too) to set a model attribute which is not set by the request, it is not serialized/returned in the payload/response.
Changing attributes which already exist in the request in the same way works fine.
When using the beforeCreate (and probably some of the other hooks too) to set a model attribute which is not set by the
request
, it is not serialized/returned in the payload/response.Changing attributes which already exist in the request in the same way works fine.