Closed awcodes closed 3 months ago
Reverts awcodes/filament-curator#523
get_class() breaks if $ids is an array of integers instead of array of media items. Line 25 in helpers.php
$ids
if (is_array($ids) && is_related_to_media_through_pivot(get_class(current($ids)), Media::class)) { $mediaIds = collect($ids)->map(fn ($model) => $model?->media_id)->toArray(); return Media::whereIn('id', $mediaIds)->get(); }
Reverts awcodes/filament-curator#523
get_class() breaks if
$ids
is an array of integers instead of array of media items. Line 25 in helpers.php