generated from boboko/starter
Feat: Moving File Handling To Core
This commit is contained in:
+5
-2
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\CustomFieldUploadController;
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Schedule;
|
||||
@@ -9,5 +10,7 @@
|
||||
})->purpose('Display an inspiring quote');
|
||||
|
||||
// Deletes custom-field photo uploads (CustomFieldUploadController) older than
|
||||
// 24h that no cart or order line references — see PruneCustomFieldUploads.
|
||||
Schedule::command('custom-fields:prune-uploads')->dailyAt('04:00');
|
||||
// 24h that no cart or order line references — boboko-core's generic
|
||||
// Modules\Core\File\Commands\PruneUnownedFilesCommand, scoped to this
|
||||
// upload flow's own purpose tag.
|
||||
Schedule::command('boboko:file:prune-unowned', [CustomFieldUploadController::PURPOSE])->dailyAt('04:00');
|
||||
|
||||
Reference in New Issue
Block a user