laravel-has-many-sync

Allow sync method for Laravel Has Many Relationship.

MIT License

Downloads
18.7K
Stars
32
Committers
3

Bot releases are visible (Hide)

laravel-has-many-sync - 3.0.0 Latest Release

Published by korridor 8 months ago

Breaking changes

  • If an ID in the related data does not exist or is not in the scope of the hasMany relation, the sync function will throw a ModelNotFoundException. It is possible to modify this behavior with the $throwOnIdNotInScope attribute. Per default, this is set to true. If set to false, the sync 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!

laravel-has-many-sync - 2.0.0 - Laravel 10

Published by korridor over 1 year ago

Breaking changes

  • The package now requires Laravel 10.
  • The namespace changed from Alfa6661\EloquentHasManySync to Korridor\LaravelHasManySync.

Changes

  • Laravel 10 support
  • Strict types
  • GitHub Actions
  • PHP 8.2 support
laravel-has-many-sync - 1.2.2 - Laravel 9

Published by korridor over 2 years ago

  • Added Laravel 9 support
  • Added PHP 8.1 support
  • Updated php-cs-fixer
laravel-has-many-sync - 1.2.1 - Laravel 5.8.* support

Published by korridor over 3 years ago

laravel-has-many-sync - 1.2.0 - Added automated unit testing

Published by korridor over 3 years ago

  • Added unit tests, travis ci, codecov and style ci
  • Updated readme
  • Formatted and linted code
Package Rankings
Top 12.95% on Packagist.org
Badges
Extracted from project README
Latest Version on Packagist License GitHub Workflow Lint GitHub Workflow Tests Codecov
Related Projects