Configured the removal of old files that were not attached to the model or were marked as deleted.

This commit is contained in:
2024-07-26 22:18:01 +05:00
parent dde792b97a
commit c84ed9f12b
10 changed files with 235 additions and 8 deletions

View File

@@ -1,2 +1,6 @@
<?php
use Illuminate\Support\Facades\Schedule;
$timezone = config('app.user_timezone');
Schedule::command(\App\Console\Commands\Files\DeleteOldFilesFromStorage::class)->timezone($timezone)->dailyAt('3:30');