Skip to content

Releases: open-southeners/laravel-dto

1.10.7

06 Oct 11:00
40011bc
Compare
Choose a tag to compare

Fixed

  • DataTransferObject::toArray when DTO constructed fromArray is getting request stuff, it doesn't get all properties

1.10.6

05 Oct 15:00
e2a74fd
Compare
Choose a tag to compare

Fixed

  • make:dto with request option doesn’t add class string to static method

1.10.5

05 Oct 14:55
c3d778d
Compare
Choose a tag to compare

Fixed

  • make:dto command with validated requests sent to option

1.10.4

05 Oct 14:43
bee5801
Compare
Choose a tag to compare

Fixed

  • Validation not applied for ValidatedDataTransferObject interface DTOs

1.10.3

04 Oct 17:53
41be27f
Compare
Choose a tag to compare

Changed

  • ValidatedDataTransferObject interface is no longer resolved, instead DataTransferObject class will be the one resolved (for those DTOs that doesn't have a FormRequest class on them, validated form data)

1.10.2

04 Oct 10:15
1142169
Compare
Choose a tag to compare

Changed

  • Better error reporting when DTO class is being bound to a controller

1.10.1

03 Oct 22:22
f977fe0
Compare
Choose a tag to compare

Fixed

  • Collections does not get mapped when Illuminate's collection has been sent to DTO

1.10.0

27 Sep 09:16
f438032
Compare
Choose a tag to compare

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

26 Sep 16:27
e72a054
Compare
Choose a tag to compare

Added

  • OpenSoutheners\LaravelDto\Attributes\BindModelUsing property PHP attribute class for use attribute to do the binding/serialisation

1.8.3

26 Sep 09:25
49540fe
Compare
Choose a tag to compare

Fixed

  • Issue mapping custom objects from data collections (native arrays or Illuminate's collections)