Skip to content

Conversation

@duganwdobbs
Copy link

I noticed that the old Revisionable class doesn't have the additional fields functionality, so I didn't add this there. This is a pretty straightforward operation. I'm making the assumption that whatever this trait is included in has a toArray() method, and that method returns an array.

The thought behind this is that during the postCreate function, $this->originalData will always be an empty array. If that is the case, we use $this->toArray(), or the current data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant