19 lines
500 B
PHP
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();
|
|
}
|
|
}
|