Breaking changes
-
If an ID in the related data does not exist or is not in the scope of the
hasMany
relation, thesync
function will throw aModelNotFoundException
. It is possible to modify this behavior with the$throwOnIdNotInScope
attribute. Per default, this is set totrue
. If set to false, thesync
function will ignore the Ids instead of throwing an exception.Before the release, the
sync
function would update the model even if the ID does not belong to the original model and throw a runtime exception if the ID does not exist at all.
Changelog
- Laravel 11 support
- PHP 8.3 support is now tested
Credits
Thanks to @bianchi for helping out with this release!