API: Unified attachment_* and model_* for Attachments

This commit is contained in:
Geoffrey “Frogeye” Preud'homme
2020-02-08 11:51:04 +01:00
parent cebc0d7568
commit e81ce3317c
2 changed files with 10 additions and 10 deletions

View File

@@ -52,8 +52,8 @@ class AttachmentUpdateRequest extends Request
'filename' => $this->string('filename'),
'title' => $this->string('title'),
'notes' => $this->nlString('notes'),
'model' => $this->string('model'),
'model_id' => $this->integer('model_id'),
'model' => $this->string('attachable_type'),
'model_id' => $this->integer('attachable_id'),
];
}