From 85b32f34a7c1bbd5a6dc3b38e4bbb9b416aa9f5e Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 14 Sep 2018 16:27:25 +0300 Subject: [PATCH] API fix --- app/Http/Controllers/InvoiceApiController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/InvoiceApiController.php b/app/Http/Controllers/InvoiceApiController.php index 9439042285..df0db130af 100644 --- a/app/Http/Controllers/InvoiceApiController.php +++ b/app/Http/Controllers/InvoiceApiController.php @@ -428,6 +428,7 @@ class InvoiceApiController extends BaseAPIController $this->invoiceService->save($data, $request->entity()); $invoice = Invoice::scope($publicId) + ->withTrashed() ->with('client', 'invoice_items', 'invitations') ->firstOrFail();