You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem:
class ConversionCollection::getByName line 42: $conversion = $this->first(fn (Conversion $conversion) => $conversion->getName() === $name);
Why does not use that condition ? in_array($this->media->collection_name, $conversion->getPerformOnCollections())
This discussion was converted from issue #3430 on November 02, 2023 13:59.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have multiple collections for my Model with same conversion names
I have uploaded png file to
logo
collection and try to get conversationexpected png file
http://localhost:8000/storage/31/conversions/photo-small.png
got jpg file
http://localhost:8000/storage/31/conversions/photo-small.jpg
The problem:
class ConversionCollection::getByName line 42:
$conversion = $this->first(fn (Conversion $conversion) => $conversion->getName() === $name);
Why does not use that condition ?
in_array($this->media->collection_name, $conversion->getPerformOnCollections())
Beta Was this translation helpful? Give feedback.
All reactions