'datetime', ]; // Prevent updates — clicks are append-only public function save(array $options = []): bool { if ($this->exists) { throw new \LogicException('Click records are append-only.'); } return parent::save($options); } /** @return BelongsTo */ public function link(): BelongsTo { return $this->belongsTo(Link::class); } }