Skip to content

Conversation

@plastique
Copy link
Contributor

No description provided.

@plastique plastique changed the title Fixes mass assigment on Attchament update Fixes mass assigment on Attachament update Jun 21, 2023
@plastique plastique changed the title Fixes mass assigment on Attachament update Fixes mass assigment on Attachment update Jun 21, 2023
@tabuna
Copy link
Member

tabuna commented Jul 7, 2023

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

protected $fillable = [
'name',
'original_name',
'mime',
'extension',
'size',
'path',
'user_id',
'description',
'alt',
'sort',
'hash',
'disk',
'group',
];

@plastique
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants