Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.91 KB

CHANGELOG.md

File metadata and controls

59 lines (39 loc) · 1.91 KB

Changelog

v2.0.0 (2022-02-08)

Added

  • support for Laravel 9 (827c15f25daf230a242af3a51093a17219cb1e7e)

v1.3.1 (2021-03-28)

Changed

  • if fillAtOnce() returns null and the JSON field is not nullable, the package won't attempt to fill a model attribute => this allows the usage of a JSON field for related fields and give full control over resolving the values

v1.2.3 (2021-03-10)

Fixed

  • array_key_exists(): The first argument should be either a string or an integer appearing when the attribute name of the JSON fields were not specified

v1.2.2 (2021-02-26)

Fixed

  • nullable() fields were not possible to be filled with null values

Changed

  • changed prepareJsonFields() from public to protected
  • added tests for nullable() & nullValues()

v1.2.1 (2021-02-03)

Fixed

  • bug where nested JSON structures would return only partly resolved with -> instead of having an array structure.

v1.2.0 (2021-02-03)

Added

  • JSON can be marked as nullable via nullable() and specify values counted as null via nullValues()
  • fillOnce() method to prevent values being filled one after another.

Fixed

  • fillUsing() callbacks of individual fields are not ignored anymore.

v1.1.0 (2021-01-07)

Added

  • nesting JSON fields is now possible
JSON::make('Address', 'address', [
    Text::make('Street'),

    JSON::make('Location', [
        Text::make('Latitude'),
        Text::make('Longitude'),
    ]),
]);

v1.0.0 (2020-12-18)

Initial Release