Clean up config.

This commit is contained in:
James Cole
2026-02-06 05:59:03 +01:00
parent 171bc03668
commit 0063cab690
9 changed files with 43 additions and 144 deletions

View File

@@ -39,18 +39,6 @@ class BillObserver
$this->updatePrimaryCurrencyAmount($bill);
}
public function deleting(Bill $bill): void
{
$repository = app(AttachmentRepositoryInterface::class);
$repository->setUser($bill->user);
/** @var Attachment $attachment */
foreach ($bill->attachments()->get() as $attachment) {
$repository->destroy($attachment);
}
$bill->notes()->delete();
}
public function updated(Bill $bill): void
{
// Log::debug('Observe "updated" of a bill.');