2.0.0-beta
Pre-release
Pre-release
Please see UPGRADING for details on how to upgrade.
Added
- Added
Item::mergeAppends
,Item::mergeCasts
,Item::mergeFillable
andItem::mergeGuarded
.
Changed
- Renamed
Item::addHidden
toItem::makeHidden
. - Merged
Item::addVisible
andItem::withHidden
intoItem::makeVisible
. - Changed visibility of
Item::getAttributeValue
to public. - The item's
toArray
method will now cast any attributes that implementIlluminate\Contracts\Support\Arrayable
to an array. - The item's
newInstance
method will now copy the type of the original item.
Removed
- Dropped Laravel <6 and PHP <7.2 support.
- Removed
jenssegers/model
dependency and added the classes into the package. - Removed unintended array access to internal properties on the item (e.g.
$item['attributes']
). - Extracted Laravel parts (config, service provider and facades) into swisnl/json-api-client-laravel.