Skip to content

Request and number field improvements

Compare
Choose a tag to compare
@lindyhopchris lindyhopchris released this 20 Feb 18:18
· 134 commits to develop since this release

Upgrading

composer require laravel-json-api/laravel --no-update
composer up laravel-json-api/*

Changelog

Added

  • #110 For requests that modify a relationship, it is now possible to get the model or models referenced in the request JSON using the toOne() or toMany() methods on the resource request class.
  • #113 The Eloquent Number field can now be configured to accept numeric strings by calling the acceptStrings() method on the field.