Releases: spatie/laravel-data
Releases · spatie/laravel-data
3.9.1
- Add Declined and DeclinedIf validation attributes (#572)
- Add MacAddress validation attribute (#573)
- Add RequiredArrayKeys validation attribute (#574)
- Support Arrayable when casting to DataCollection (#577)
- Fetch attributes from parent classes to allow reusability (#581)
- Fix issue where non-set optional values would be transformed
3.9.0
- Fix an issue where computed values could not be set as null
- Fix for no rules created on optional|nullable Data object and Collection (#532)
- Add
CustomValidationAttribute
's
- Copy partial trees when using array access on a collection
3.8.1
- fix abstract json cast format
3.8.0
- Add Hidden Attribute (#505)
- Add Null value support for RequiredUnless Validation (#525)
- Add abstract eloquent casts (#526)
3.7.1
- fix target namespace when creating files with Laravel Idea (#497)
- allow collection to be created passing null (#507)
- add Ulid validation rule (#510)
-add TARGET_PARAMETER to Attribute for improved Validation (#523)
3.7.0
- Add support for better exception messages when parameters are missing
- Fix default properties generating validation rules when not provided
- Add last() method on DataCollection (#486)
- Add new manual written present attribute rule always overwrites a generated required rule
- Added the ability to create data files, casts, transformers and rules using Laravel Idea plugin #485
3.6.0
- Add some config options to the
make:data
command (#449, #335)
3.5.1
- Add ability to instantiate an eloquent cast when null value using null database values (#425)
- Revert only use validated data (#438) -> see #432
3.5.0
- Add support for computed values
- Add merge method to Data Collections (#419)
- Allow field references in same validation attribute
- Generic return type of toResponse function (#437)
- Only use validated data (#438)
- Add missing constructor parameters to error message (#433)