mvdnbrk/laravel-model-expires
Adopt if:
if ($model->created_at > now()) checks).expires_at column).Look elsewhere if:
SoftDeletes trait or laravel-model-soft-deletes).For Executives: "This package lets us automate expiration logic for time-sensitive features (like subscriptions or trials) with minimal dev effort. For example, we can enforce a 30-day trial period for new users without writing custom code. It’s like setting a ‘best before’ date for database records, reducing churn risk and compliance headaches. The MIT license means no vendor lock-in, and it integrates seamlessly with our existing Laravel stack."
For Engineers:
*"This trait adds a single use Expirable; line to any Eloquent model to auto-manage expiration via an expires_at column. It handles:
Schema::expires()).expires_at.if ($model->isExpired())).
No more scattered now()->diff($model->created_at) logic. It’s lightweight (~166 stars, MIT license) and saves us from reinventing the wheel. The last release was 2020, but the code is simple enough to fork if needed."*How can I help you explore Laravel packages today?