Skip to content

Commit

Permalink
Update StandardMediaCollections.php
Browse files Browse the repository at this point in the history
  • Loading branch information
glennjacobs committed Nov 29, 2023
1 parent bb8ba6a commit c01ce3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/Base/StandardMediaCollections.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ public function apply(HasMedia $model)
$fallbackUrl = config('lunar.media.fallback.url');
$fallbackPath = config('lunar.media.fallback.path');

// Reset
$model->mediaCollections = [];

$collection = $model->addMediaCollection('images');

if ($fallbackUrl) {
Expand Down

0 comments on commit c01ce3e

Please sign in to comment.