platform icon indicating copy to clipboard operation
platform copied to clipboard

Fixes mass assigment on Attachment update

Open plastique opened this issue 2 years ago • 2 comments

plastique avatar Jun 21 '23 14:06 plastique

Hi, thanks for the PR. Could you give more details? By default, the attachment model does not contain fillable id

https://github.com/orchidsoftware/platform/blob/1d232452289950366322e77a9d079cebc305a906/src/Attachment/Models/Attachment.php#L32-L46

tabuna avatar Jul 07 '23 02:07 tabuna

Perhaps this change is not so important. An error occurs when changing the description or alt text of an image, provided that the preventSilentlyDiscardingAttributes model setting is true.

plastique avatar Jul 07 '23 12:07 plastique