|null $before * @property array $after */ class AuditLog extends Model { use BelongsToTenant; public $timestamps = false; protected $guarded = ['id']; protected function casts(): array { return ['before' => 'array', 'after' => 'array']; } protected static function booted(): void { static::updating(fn () => throw new LogicException('O histórico de auditoria não pode ser alterado.')); static::deleting(fn () => throw new LogicException('O histórico de auditoria não pode ser eliminado.')); } }