diff --git a/app/Http/Controllers/Shop/InvoiceController.php b/app/Http/Controllers/Shop/InvoiceController.php index a5d9e380..1250b97e 100644 --- a/app/Http/Controllers/Shop/InvoiceController.php +++ b/app/Http/Controllers/Shop/InvoiceController.php @@ -24,7 +24,9 @@ class InvoiceController extends Controller public function pdf($uuid) { - \Debugbar::disable(); + if (app()->bound('debugbar')) { + app('debugbar')->disable(); + } return InvoicePDF::getByUUID($uuid); }