Files
portal-api/app/Integrations/Whmcs/Extractors/OrderItemExtractor.php
T
2026-09-09 16:56:22 +07:00

19 lines
500 B
PHP

<?php
namespace App\Integrations\Whmcs\Extractors;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\LazyCollection;
class OrderItemExtractor
{
/**
* Each `tblhosting` row (a provisioned service instance) is the closest WHMCS equivalent
* of an order line item — WHMCS orders have no real line-item table of their own.
*/
public function extract(): LazyCollection
{
return DB::connection('whmcs')->table('tblhosting')->orderBy('id')->cursor();
}
}