Open AndriiHrynchuk opened 3 years ago
Or you could just use Laravel's own HTTP client:
$data = [
'$sales' => $salesTotal,
];
$response = Http::withHeaders(
[
'Accept' => 'application/vnd.databox.v2+json',
'Content-Type' => 'application/json'
]
)->withBasicAuth(config('services.databox.token'), '')
->post(
'https://push.databox.com',
[
'data' => [$data],
]
);
As a general update: On Laravel 9, installing databox/databox fails because of the outdated guzzle version. Is this project dead?
@VladaPetrovic
Hi, I'm going to use your package with latest Laravel v8. Your package is missing support of "guzzlehttp/guzzle": "^7.0.1". Are you going to upgrade your package to add support of guzzle v7?