NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #412 most downloaded on Packagist
Create unified resources and data transfer objects
Latest stable
4.23.1
Last release 26 days ago
26 Oct 2026
Release timing varies
gaps range from 9 days to 6 months
Nearly every release is documented
notes for 59 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
137 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Add support for better exception messages when parameters are missing
Add some config options to the make:data command (#449, #335)
make:data command (#449, #335)Add ability to instantiate an eloquent cast when null value using null database values
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add support for computed values
Nothing published for this version
Update TypeScript Transformer with new closure lazy type
Add support for Lazy Closures which can be used with inertia
reverted the reverted #393 branch
Allow to fetch Lazy data properties in unified way
revert: Fix usage of properties' mapped output names in 'only', 'except', 'includes', and 'excludes' operations
Fix issue when validating and creating a data object was impossible to use magic creation methods
Introduce FormRequestNormalizer
Add benchmarks for testing data performance
Nothing published for this version
Fix issue where promoted protected constructor parameters were seen as possible property canidates
Quote non-standard object keys when transforming to Typescript
Allow filling props from route parameters
The validation logic is completely rewritten
- Add Laravel 10.x support
Add a way to prepend DataPipes to the pipeline
fix support to return 201 status code in Json Responses
Add generic return type for DataCollection::toCollection
Stop using custom pipeline when creating data magically from requests
add support for optional properties in TypeScript transformer
add better support for Livewire
StudlyMapperfix typo in mime type validation rule
fix first and last page url are never null
Improve pattern matching in DataCollectionAnnotationReader
Use generics with Data::collection
Add support for a JsonSerializer
Add support for timezone manipulation in casts and transformers
use AbstractCloner instead of reflection
- Add var dumper caster (#195) - Allow direct pipeline call (#193) - Rename ArrayableNormalizer (#191) - Make normalizers configurable
Add cast lazy condition result to bool
Fix validation rules not being used for data collections and objects
- Add IDE completion support
Add support for invokable rules
more consistent use of transform through codebase for transforming collections and data
Use mapped property names in TypeScript
Version 2 of laravel-data is a complete overhaul, we've almost completely rewritten the package.
Version 2 of laravel-data is a complete overhaul, we've almost completely rewritten the package.
This is a (non-complete) list of the new features:
only and except methods on Data and DataCollections- MimeTypes validation fix on v1
Nothing published for this version
Use protected properties and methods
add values() on DataCollection by @Nielsvanpach in https://github.com/spatie/laravel-data/pull/135
Full Changelog: https://github.com/spatie/laravel-data/compare/1.4.7...1.5.0
support $payload as a dependency in rules
Add Dependency Injection for rules, messages, and attributes methods
Add support for stdClass payload casting
use present validation rule instead of required for data collections
allow using default password config in password validation attribute
links array to the paginated responselazy::whenLoaded closure when the relation is nullfix for aborting value assignment after a false boolean
WithoutValidation attributeAllow transformers to target Data and DataCollections
removes checks for built in types and isBuiltIn from DataProperty
isBuiltIn from DataPropertyLaravel 9.x by @aidan-casey in https://github.com/spatie/laravel-data/pull/77
Full Changelog: https://github.com/spatie/laravel-data/compare/1.3.2...1.3.3
add support for json_encode to Data objects
add basic support for intersection types
add a PHP 8.1 enum cast and transformer
LazyCollections with DataCollectionCollection or LazeCollection instead of an array as internal structure within DataCollectionInvalidPaginatedDataCollectionModification to InvalidDataCollectionModificationrules method of a data objectfixes the RequiredRuleResolver to support custom rules like Enum
Enumrename the authorized method to authorize
authorized method to authorize- fix return type notice message
Nothing published for this version
One column per quarter.