Skip to content

v0.2.0

Compare
Choose a tag to compare
@warrickbayman warrickbayman released this 25 Mar 09:08
· 13 commits to master since this release
e51cbc1
  • Renamed the present() method on the IsPresentable trait to presentable() so that its the same name as the presentable key on the array when calling toArray().
  • Potentially the library could work outside of a Laravel project. The toArray() method has an update that will now check for the existence of a toArray() method on the parent first. You could override the getBaseAttributes() method as well to return whatever attributes your model needs to return.