spatie / laravel-deleted-models

Automatically copy deleted records to a separate table

Home Page:https://freek.dev/2416-a-package-to-automatically-copy-deleted-records-to-a-separate-table

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

massPrunable must be changed + Missing tests

afpinedac opened this issue · comments

I tried to send PR but it was blocked.

I think the right Implementation is

protected function massPrunable()
{
return static::where('created_at', '<=', now()->subDays(config('deleted-models.prune_after_days')));
}

Also, the CONTRIBUTING.md file is missing. How can we do that?

The tests prove that the current behaviour is working.