Improving error reporting API

This commit is contained in:
David Bomba 2016-02-17 10:05:08 +11:00
parent a1be1f3529
commit 09650123d7

View File

@ -1,5 +1,6 @@
<?php namespace App\Models;
use Illuminate\Support\Facades\Log;
use Utils;
use DateTime;
use Illuminate\Database\Eloquent\SoftDeletes;
@ -752,6 +753,8 @@ class Invoice extends EntityModel implements BalanceAffecting
],
];
Log::info($opts);
curl_setopt_array($curl, $opts);
$response = curl_exec($curl);
curl_close($curl);