Add gold credit feature gated by SuperAdmin enable_gold_credit.

Port tables, APIs, and overdue cron from goldali, default the flag off, and keep customer routes behind auth.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-30 00:17:01 +03:30
co-authored by Cursor
parent a8be3d499b
commit 050bd26318
18 changed files with 1670 additions and 5 deletions
+5
View File
@@ -13,6 +13,11 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule)
{
$schedule->command('gold-credit:process-overdue')
->everyFiveMinutes()
->name('gold_credit_process_overdue')
->withoutOverlapping();
// تیک قیمت — ۶ بار در دقیقه با فاصله ۱۰ ثانیه (montzar + zaarbox + محصولات)
// نیاز: * * * * * php artisan schedule:run
// یا یک‌بار: php artisan schedule:bootstrap