cosmira/sandbox
Cosmira Sandbox provides a lightweight, isolated environment for experimenting with Laravel and PHP code. Use it to safely test package behavior, reproduce issues, and validate changes without risking production data or configuration.
SandboxBelongsToMany::syncAcrossCopies() lets product teams keep relationship assignments aligned between active and draft model copies without forcing a draft to be opened or changing ownership.Consider adoption when:
BelongsToMany relationship changes to reach both active and draft copies.Look elsewhere or defer adoption when:
For executives: This release adds a focused, tested capability for keeping active and draft relationship assignments consistent in Laravel applications. It reduces custom engineering risk for editorial/approval workflows and requires no database migration, so it can be adopted with limited operational disruption.
For engineering: Version 1.1.0 introduces SandboxBelongsToMany::syncAcrossCopies(), which accepts ID lists, pivot attribute maps, or payload factories evaluated after parent locks. It applies removal deltas across copies while preserving unrelated assignments, returns affected parent copies for same-transaction timestamp/projection/audit updates, preserves custom pivot behavior, compares raw database keys while retaining global-scope filters, and rejects unsupported filtered relations and identity overrides. The release includes 39 contract tests and retains prior generated-column and Oracle discovery improvements.
How can I help you explore Laravel packages today?