Skip to content

Commit

Permalink
Merge pull request #27 from ahmed-aliraqi/media-regenerate
Browse files Browse the repository at this point in the history
Add --force flag to media-library:regenerate command
  • Loading branch information
ahmed-aliraqi authored Feb 28, 2023
2 parents c967714 + 23c83a3 commit b932ad7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Entities/Concerns/HasUploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function addAllMediaFromTokens($tokens = null, $collection = null)
if (count($mediaIds) > 0 && Config::get('laravel-media-uploader.regenerate-after-assigning')) {
Artisan::call('media-library:regenerate', [
'--ids' => implode(',', $mediaIds),
'--force' => true,
]);
}

Expand Down

0 comments on commit b932ad7

Please sign in to comment.