fix: do not call debugbar if not available (when in prod)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user