fix yd fetch data

This commit is contained in:
omair saleh
2022-01-04 20:23:47 +08:00
parent f69c99b070
commit 04bd67573c
+1 -1
View File
@@ -195,7 +195,7 @@ Route::get('/min_cbm', function (){
return $query->selectRaw('sum((width/100) * (height/100) * (length/100) * quantity) as cbm')->where('type', \App\Classes\ValueObjects\Constants\PackingListType::SHIPPING_PACKING_LIST)->where('status', '!=', 5)->having('cbm', '>', 0.3);
});
});
})->get();
})->limit(1)->get();
foreach ($companies as $company) {
echo route('customer.profile', $company->inviters()->withPivot('invitee_reference')->first()->pivot->invitee_reference).'<br>';