commit
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-28 12:06:05 +02:00
parent 90a6848721
commit 4d42f083ce
82 changed files with 7538 additions and 76 deletions
@@ -0,0 +1,14 @@
<?php
namespace App\Models\Concerns;
use LogicException;
trait ImmutablePurchaseRecord
{
protected static function bootImmutablePurchaseRecord(): void
{
static::updating(fn () => throw new LogicException('O documento emitido não pode ser reescrito.'));
static::deleting(fn () => throw new LogicException('O documento emitido deve ser preservado.'));
}
}