Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Expires Laravel Package

createnl/expires

A Laravel package for adding expiration to Eloquent models. Attach expiry dates to records, automatically scope out or clean up expired entries, and keep outdated data under control with simple, configurable traits and queries.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature scoping for expiration-based workflows: The addOnlyExpired bug fix in 0.3 improves reliability for features like timed access, trial periods, token refresh, and cache invalidation where “add only if expired” semantics matter.
  • Build vs. buy: A Laravel-native package with corrected expiration logic reduces the need to build custom expiration handling. Release 0.3 also adds methods and returns Model instances, enabling richer domain modeling and event-driven flows (e.g., returning created/updated records for further processing).
  • Roadmap and migration planning: The breaking return-type change (bool → Model) requires a PM to budget for consumer updates. Since this is a pre-1.0 package, breaking changes are expected but should be tracked before committing to production use.
  • Use cases: Suitable for Laravel applications that need expiration-centric CRUD, such as rate limiting, subscription grace periods, or conditional record creation based on expiry state.
  • Risk management: The bug fix lowers operational risk; the API change raises upgrade cost for existing adopters. PM should decide whether to pin to 0.2 or plan a refactor.

When to Consider This Package

  • Adopt if: You need expiration-oriented behavior with addOnlyExpired and your team already uses Laravel. Release 0.3 improves correctness, adds methods, and returns Model instances, which can simplify downstream workflows.
  • Evaluate migration cost if: You have existing code relying on bool return values. The bool → Model change is breaking; plan for code updates or version pinning before upgrading.
  • Look elsewhere if: You require a stable public API (post-1.0) or your domain does not involve “expired” semantics. Pre-1.0 packages carry inherent churn risk.
  • Onboarding consideration: The updated README in 0.3 reduces friction, but the added methods and return-type changes should be reviewed against your use cases.
  • Pin-and-test approach: Consider locking to 0.2 for immediate stability while evaluating 0.3 in a branch, especially if addOnlyExpired is central to your feature.

How to Pitch It (Stakeholders)

  • Executives: A low-cost, Laravel-native package that handles expiring data correctly. Release 0.3 fixes a bug and adds methods, but introduces a breaking API change—assess upgrade effort before committing to production.
  • Engineering: Release 0.3 fixes addOnlyExpired, adds methods, changes return types from bool to Model, and updates the README. Useful for expiration workflows, but requires code updates and version-pinning discipline.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels