2026-07-03 13:46:54 +00:00
|
|
|
<?php
|
|
|
|
|
|
2026-09-25 13:47:58 +03:00
|
|
|
use App\Http\Controllers\CustomFieldUploadController;
|
2026-07-03 13:46:54 +00:00
|
|
|
use Illuminate\Foundation\Inspiring;
|
|
|
|
|
use Illuminate\Support\Facades\Artisan;
|
2026-09-23 17:53:23 +03:00
|
|
|
use Illuminate\Support\Facades\Schedule;
|
2026-07-03 13:46:54 +00:00
|
|
|
|
|
|
|
|
Artisan::command('inspire', function () {
|
|
|
|
|
$this->comment(Inspiring::quote());
|
|
|
|
|
})->purpose('Display an inspiring quote');
|
2026-09-23 17:53:23 +03:00
|
|
|
|
|
|
|
|
// Deletes custom-field photo uploads (CustomFieldUploadController) older than
|
2026-09-25 13:47:58 +03: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');
|