Releases: open-southeners/laravel-dto
Releases · open-southeners/laravel-dto
1.10.7
Fixed
DataTransferObject::toArray
when DTO constructedfromArray
is getting request stuff, it doesn't get all properties
1.10.6
Fixed
make:dto
with request option doesn’t add class string to static method
1.10.5
Fixed
make:dto
command with validated requests sent to option
1.10.4
Fixed
- Validation not applied for ValidatedDataTransferObject interface DTOs
1.10.3
Changed
ValidatedDataTransferObject
interface is no longer resolved, insteadDataTransferObject
class will be the one resolved (for those DTOs that doesn't have aFormRequest
class on them, validated form data)
1.10.2
Changed
- Better error reporting when DTO class is being bound to a controller
1.10.1
Fixed
- Collections does not get mapped when Illuminate's collection has been sent to DTO
1.10.0
Changed
- Model binding defaults to primary key instead of
Model::getRouteKeyName()
(which should be used for those coming from routes instead) - Route bound models are using specified attributes instead of default to IDs (model's primary keys). For e.g.
posts/{post:slug}
will use slug on the DTO query
Fixed
- BindModelUsing now uses the attribute on the binding query
1.9.0
Added
OpenSoutheners\LaravelDto\Attributes\BindModelUsing
property PHP attribute class for use attribute to do the binding/serialisation
1.8.3
Fixed
- Issue mapping custom objects from data collections (native arrays or Illuminate's collections)