This is the documentation for
v3 but the latest version is
v10
.
You can switch versions in the menu on the left/at the top.
Check your current version with the following command:
composer show spatie/laravel-medialibrary
When you change a conversion on your model, all images that were previously generated will not
be updated automatically. You can regenerate your images via an artisan command. Note that conversions are often queued, so it might take a while to see the effects of the regeneration in your application.
$ php artisan medialibrary:regenerate
If you only want to regenerate the images for a single model, you can specify it as a parameter:
$ php artisan medialibrary:regenerate news