Releases: spatie/laravel-data
Releases · spatie/laravel-data
1.3.1
- 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
- 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
withDataCollection
- using of a
Collection
orLazeCollection
instead of anarray
as internal structure withinDataCollection
- renamed
InvalidPaginatedDataCollectionModification
toInvalidDataCollectionModification
- stop automatically deducing rules for properties when they are overwritten within the
rules
method of a data object
1.2.5
- fixes the RequiredRuleResolver to support custom rules like
Enum
- add an Enum validation rule attribute
1.2.4
- rename the
authorized
method toauthorize
- disable the behavior were excluded conditional properties still could be included
1.2.3
- fix return type notice message
1.2.2
Merge pull request #34 from ahoiroman/patch-1 Fixes PHP-notice
1.2.1
- fixes an issue where data object could not be created when it had lazy nested data object
- fixes windows test suite
1.2.0
- 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
1.0.4
- revert allow ignoring with a closure within a unique rule