laravel-paperclip icon indicating copy to clipboard operation
laravel-paperclip copied to clipboard

Strategy for changing interpolation

Open iredmedia opened this issue 3 years ago • 1 comments

If we have decided to change our interpolation mechanism - for example:

  'url' => '/:class_name/:id/:attachment/:style/:hash.:extension',

becomes

  'url' => '/:class_name/:id/:attachment/:style/:secure_hash.:extension',

How can we change this without breaking all of our existing assets, is there a predetermined migration path here?

iredmedia avatar Apr 05 '21 21:04 iredmedia

There is currently no official migration mechanism.

Your best bet is to make your own script that applies the transformation. It may be possible to use the interpolator in this package to your advantage for this.

This is definitely something I'd like an official migration process within the package for, but I won't have the time to implement something like that anywhere soon.

czim avatar Apr 08 '21 17:04 czim