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
Vp7mo 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
Faridleo6mo ago
How I can delete database notifications too?
LeandroFerreira
LeandroFerreira6mo 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