Files
2026-06-10 18:25:05 +03:30

22 lines
510 B
PHP

<?php
namespace App\Console\Commands;
use App\Services\ProductPriceSyncService;
use Illuminate\Console\Command;
class UpdateProductStatus extends Command
{
protected $signature = 'product:update-status';
protected $description = 'Updates product prices and auto closes/opens products';
public function handle(ProductPriceSyncService $syncService): int
{
$syncService->syncAll();
$this->info('Product statuses updated successfully.');
return self::SUCCESS;
}
}