Auto delete export files after 7 days

How can I auto-delete export files (CSV and XLSX) as well as Import Failure CSV after 7 days from their creation?
3 Replies
Vp
Vp6mo ago
Check cron job in laravel and delete from db using 'delete()' and for file delete them using storage or based on what it saves
Faridleo
Faridleo5mo ago
How I can delete database notifications too?
LeandroFerreira
LeandroFerreira5mo ago
Medium
Automatically delete read database notifications in Laravel
When using Laravel, if you need to notify your users you can benefit from its built-in notification system. Laravel provides support for…
Want results from more Discord servers?
Add your server