1
0
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:
David Bomba 2016-02-17 09:09:32 +11:00
parent 4a033ce925
commit 746b6ef362

View File

@ -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)