tighten / onramp

Easing the onramp for new or non-PHP developers to become Laravel devs.
https://onramp.dev/
MIT License
157 stars 56 forks source link

Soft delete expired resources #500

Closed tammytee closed 1 year ago

tammytee commented 1 year ago

Closes #475

Summary

Overview

This PR adds SoftDeletes to the Resource model.

It also adds a resource:tidy command, scheduled to run daily, that will soft delete any resources that have expired and move them to the trash.

After reviewing the expired resources report (via Slack or manually), the resource:tidy command can be used with the --prune option to permanently resources moved to the trash.

Use the --preview option with the resource:tidy command to see the expired resource report before trashing or permanently deleting any items.

The expired resources report has been updated to specify if an expired resource has been soft deleted or not:

image

Things to consider: