Skip to content

Releases: spatie/laravel-data

1.3.1

07 Jan 17:01
Compare
Choose a tag to compare
  • add basic support for intersection types
  • allow casting of built in PHP types
  • add support for inferring enum rules
  • fix an issue where an Enum validation attribute would not work

1.3.0

05 Jan 15:05
Compare
Choose a tag to compare
  • add a PHP 8.1 enum cast and transformer (#64 )
  • fixes resolving of validation rules in nested data objects that should all be nullable when the main data property is nullable
  • add support for LazyCollections with DataCollection
  • using of a Collection or LazeCollection instead of an array as internal structure within DataCollection
  • renamed InvalidPaginatedDataCollectionModification to InvalidDataCollectionModification
  • stop automatically deducing rules for properties when they are overwritten within the rules method of a data object

1.2.5

29 Dec 14:35
Compare
Choose a tag to compare
  • fixes the RequiredRuleResolver to support custom rules like Enum
  • add an Enum validation rule attribute

1.2.4

16 Dec 15:07
Compare
Choose a tag to compare
  • rename the authorized method to authorize
  • disable the behavior were excluded conditional properties still could be included

1.2.3

03 Dec 11:55
1169c10
Compare
Choose a tag to compare
  • fix return type notice message

1.2.2

01 Dec 13:31
ed43644
Compare
Choose a tag to compare
Merge pull request #34 from ahoiroman/patch-1

Fixes PHP-notice

1.2.1

19 Nov 13:32
Compare
Choose a tag to compare
  • fixes an issue where data object could not be created when it had lazy nested data object
  • fixes windows test suite

1.2.0

16 Nov 16:00
Compare
Choose a tag to compare
  • when creating data objects, we now will always run validation when a Request object is given not only when a data object is injected
  • removal of DataFromRequestResolver
  • added DataValidatorResolver

1.1.0

12 Nov 15:18
Compare
Choose a tag to compare
  • change data property types collection checking procedure
  • move spatie/test-time dependency to require-dev
  • expand support for nested data object creation (#19)
  • expand support for annotating data collections

1.0.4

04 Nov 08:28
Compare
Choose a tag to compare
  • revert allow ignoring with a closure within a unique rule