throw new BadMethodCallException('Cannot create invoice report from here, use event instead.')); static::deleting(fn (InvoiceReport $invoiceReport) => throw new BadMethodCallException('Cannot delete invoice report.')); static::updating(fn (InvoiceReport $invoiceReport) => throw new BadMethodCallException('Cannot update invoice report.')); } protected $casts = [ 'amount' => MoneyCurrency::class, 'paid_amount' => MoneyCurrency::class, 'issued_at' => 'datetime', 'paid_at' => 'datetime', 'status' => InvoiceStatus::class, ]; }