db); $invoice = Invoice::withTrashed()->find($this->invoice_id); if($invoice->is_proforma){ $invoice->is_proforma = false; $repo->delete($invoice); } } public function failed($exception = null) { } }