diff --git a/app/Console/Commands/RegenerateThumbnails.php b/app/Console/Commands/RegenerateThumbnails.php new file mode 100644 index 000000000..f5759c36f --- /dev/null +++ b/app/Console/Commands/RegenerateThumbnails.php @@ -0,0 +1,51 @@ +chunk(50, function($medias) { + foreach($medias as $media) { + \App\Jobs\ImageOptimizePipeline\ImageThumbnail::dispatch($media); + } + }); + }); + } +}