i use Fast Excel library from https://github.com/rap2hpoutre/fast-excel, can i put return from ->download('file.xlsx') to Guzzle post request? with this code i'm not get anything
$httpClient = new GuzzleHttpClient([ 'headers' => [ 'Authorization' => mdmTokenGenerate($token), 'Accept' => 'application/json' ], 'verify' => false ]); $response = $httpClient->post( "{$client->domain}/api/push", [ 'multipart' => [ [ 'name' => 'file', 'contents' => (new FastExcel(MasterNumbers::limit(1000)->get()))->download('file.xlsx') ] ] ] );
1.4m articles
1.4m replys
5 comments
56.9k users