Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes mass assigment on Attachment update #2654

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

2 participants