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