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