From 12d34448081ee10331843c142bd45cd3f981e4de Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 16 Jan 2016 09:22:22 +1100 Subject: [PATCH] By default include trashed invoices --- app/Http/Controllers/InvoiceApiController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/InvoiceApiController.php b/app/Http/Controllers/InvoiceApiController.php index a7131745efc7..438dbd20b292 100644 --- a/app/Http/Controllers/InvoiceApiController.php +++ b/app/Http/Controllers/InvoiceApiController.php @@ -49,8 +49,8 @@ class InvoiceApiController extends BaseAPIController */ public function index() { - $paginator = Invoice::scope(); - $invoices = Invoice::scope() + $paginator = Invoice::scope()->withTrashed(); + $invoices = Invoice::scope()->withTrashed() ->with(array_merge(['invoice_items'], $this->getIncluded())); if ($clientPublicId = Input::get('client_id')) {