All notable changes to laravel-expirable
will be documented in this file.
-
Add
mode
key toexpirable.php
configuration file to specify the type of delete used by theexpirable:purge
command, value defaulting tohard
. -
Add
--mode=hard/soft
option toexpirable:purge
command, taking themode
key inexpirable.php
configuration file if not specified, otherwise defaulting tohard
for backward compatibility.
- Add ability to pass which models to delete in argument of the
expirable:purge
command. - Add
since
option for theexpirable:purge
command to delete only the models that have expired for at least a given period of time.
- Add support for Laravel 10.
- Expirable trait: Remove deprecated
$dates
property and add expirable attribute to$casts
property. - Tests: Update XML configuration schema for PHPUnit.
- Tests: Use class based factories.