Updating Image Roles #2437
Replies: 2 comments
-
@Eloiducrest I'm afraid that doesn't solve the problem. I want to be able to change the configuration of existing crops and have that reflected when rendered |
Beta Was this translation helpful? Give feedback.
-
The command only adds or remove, it doesn't edit existing crops because it could override manually curated crops by admins in the CMS. So we could add an option to force it, but one way you can already do this would be by renaming the |
Beta Was this translation helpful? Give feedback.
-
Summary
Currently there doesn't appear to be a way of updating existing media roles without manually re-associating the media.
For example, if the database contains instances of
MyModel
(see below) and they havefeatured_image
s associated but then theratio
of the crop is changed the media is unaffected even after runningphp artisan twill:refresh-crops '\App\Models\MyModel' featured_image
Describe the solution you'd like
Running
twill:refresh-crops
would update themediables
table for crops which have been updated rather than just adding new ones and removing defunct onesBeta Was this translation helpful? Give feedback.
All reactions