v1.0.0-beta.2
Pre-release
Pre-release
⚠️ Breaking Changes
- Types are now their own construct instead of being subclasses of
Attribute
. See the Attributes documentation for more information. - Removed support for defining polymorphic relationships by passing a map of model classes to resource types. You should use heterogeneous collections instead. See the Relationships documentation for more information.
Added
- Add support for heterogeneous collections
- Add
Arr
type for defining array attributes (#88 by @bertramakers) - Laravel: Allow
WhereHas
field to be specified manually
Fixed
- When creating a resource, set the context model prior to field validation
- Fix error when updating a resource with a conflicting ID (#85)
- Laravel: Fix
Has
filter not working without ascope
- Laravel: Don't apply relationship loading constraints if there aren't any