Skip to content

v2.0.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@warrickbayman warrickbayman released this 14 Dec 21:36

Version 2 brings a new way to create presentables with a lot of flexibility and less duplication.

I've tried to keep as much backward compatibility as possible, so version 1 users should be able to upgrade without making any changes to their code. If you're overriding stuff, then there might be some things that are going to break.

Version 2 introduces a number of new features:

  • Presentable classes are a handy way to allow for the reuse of presentables.
  • Pass arbitrary data into presentable classes so you could have a single class that can be used to present different attributes.
  • Default presentables can be set in the configuration file.
  • Presentable classes can be marked as hidden which will remove them from the array when using toArray on a model.