spatie/laravel-medialibrary fallback image do not work
I'm have a optional image field and I want to show a default image if any image was added, According to the spatie documentation if I add fallback urls and path to collection should be enough, but the image column do not show the fallback image, it's a bug or I'm doing wrong?
Solution
Ya, I'm not sure if that
But using
useFallbackUrl or useFallbackPath works. But using
->defaultImageUrl('/images/anonymous.png') on the Resource works.