PHPackages                             andresuntoro/softexpires - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. andresuntoro/softexpires

ActiveLibrary[Database &amp; ORM](/categories/database)

andresuntoro/softexpires
========================

A trait package to add soft expires feature to eloquent laravel/lumen

v1.1(4y ago)0341MITPHPPHP ^7.2.5 || ^8.0

Since Sep 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/andresuntoro/softexpires)[ Packagist](https://packagist.org/packages/andresuntoro/softexpires)[ RSS](/packages/andresuntoro-softexpires/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

SoftExpires
===========

[](#softexpires)

A simple trait package for eloquent laravel/lumen which is useful for handling expired data automatically.

Installation
------------

[](#installation)

Require this package, with [Composer](https://getcomposer.org/), in the root directory of your project. **Composer 2 is a must!**.

```
composer require andresuntoro/softexpires
```

Configuration
-------------

[](#configuration)

You should add the "expired\_at" column to your database table.

Usage
-----

[](#usage)

Here you can see an example of you may use this package. Just add ***AndreSuntoro\\Database\\Eloquent\\SoftExpires;*** to your model and use it. You can combine with others trait too, for the example: ***SoftDeletes***.

```
