-
Notifications
You must be signed in to change notification settings - Fork 0
Open
0 / 40 of 4 issues completedLabels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Description
Add a new Artisan command to delete old reports from the database.
Why It Matters
Currently, deletion is only possible via schedule()->daily() in the host application. This creates unnecessary coupling and makes testing or ad-hoc usage less convenient.
Command
php artisan reporting:purge
Options
It would be helpful to support the following options:
--days=30– Manually specify the report age in days (default can be 30)--dry-run– Show how many reports would be deleted, without actually deleting anything
Benefits
- Can be run from CRON, CI/CD, or manually
- Helps during testing or one-off maintenance tasks
- No need to add logic to
App\Console\Kernel.php
Want to help? Fork the repo and open a PR. Questions are welcome in the comments!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers