diff --git a/packages/admin/src/Support/RelationManagers/MediaRelationManager.php b/packages/admin/src/Support/RelationManagers/MediaRelationManager.php index eb9f7555b2..7891b5c248 100644 --- a/packages/admin/src/Support/RelationManagers/MediaRelationManager.php +++ b/packages/admin/src/Support/RelationManagers/MediaRelationManager.php @@ -56,12 +56,12 @@ public function table(Table $table): Table ->heading(function () { $product = $this->getOwnerRecord(); - return $product->getMediaCollectionTitle(config('lunar.media.collection')) ?? Str::ucfirst($this->mediaCollection); + return $product->getMediaCollectionTitle($this->mediaCollection) ?? Str::ucfirst($this->mediaCollection); }) ->description(function () { $product = $this->getOwnerRecord(); - return $product->getMediaCollectionDescription(config('lunar.media.collection')) ?? ''; + return $product->getMediaCollectionDescription($this->mediaCollection) ?? ''; }) ->recordTitleAttribute('name') ->modifyQueryUsing(fn (Builder $query) => $query->where('collection_name', $this->mediaCollection)->orderBy('order_column'))