'datetime', ]; } protected static function booted(): void { static::updating(fn () => throw new \LogicException('image_declaration_corrections ist insert-only.')); static::deleting(fn () => throw new \LogicException('image_declaration_corrections wird nicht gelöscht.')); } /** * @return BelongsTo */ public function image(): BelongsTo { return $this->belongsTo(PressReleaseImage::class, 'press_release_image_id'); } /** * @return BelongsTo */ public function admin(): BelongsTo { return $this->belongsTo(User::class, 'admin_id'); } }