Replies: 1 comment
-
+1 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I see you have fallback urls and paths but can they be used when returning collections/convertions/responsive where no media exists? (either not uploaded or seeder/populated)
*I don't expect them to actually be responsive obvs
I have a problem where my app fails if no avatar exists on
$data->user->getFirstMedia('avatar')->img('responsive')->attributes(['class'=>'w-8 h-8 rouded-full'])
and would like it to fail gracefully using the fallback image instead of breaking.or Is there a better eay to acheieve this already?
Beta Was this translation helpful? Give feedback.
All reactions