mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Improving error reporting API
This commit is contained in:
parent
4a033ce925
commit
746b6ef362
@ -1,6 +1,7 @@
|
|||||||
<?php namespace App\Http\Controllers;
|
<?php namespace App\Http\Controllers;
|
||||||
|
|
||||||
use Auth;
|
use Auth;
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
use Illuminate\Support\Facades\Request;
|
use Illuminate\Support\Facades\Request;
|
||||||
use Utils;
|
use Utils;
|
||||||
use Response;
|
use Response;
|
||||||
@ -282,6 +283,8 @@ class InvoiceApiController extends BaseAPIController
|
|||||||
$data = Input::all();
|
$data = Input::all();
|
||||||
$error = null;
|
$error = null;
|
||||||
|
|
||||||
|
Log::info($data);
|
||||||
|
|
||||||
$invoice = Invoice::scope($data['id'])->withTrashed()->first();
|
$invoice = Invoice::scope($data['id'])->withTrashed()->first();
|
||||||
|
|
||||||
if(!$invoice)
|
if(!$invoice)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user