New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Default Image URL Feature #6578
Added Default Image URL Feature #6578
Conversation
PR Summary
|
...ges/spatie-laravel-media-library-plugin/src/Tables/Columns/SpatieMediaLibraryImageColumn.php
Outdated
Show resolved
Hide resolved
…s/SpatieMediaLibraryImageColumn.php
Maybe this belongs on the base |
...ges/spatie-laravel-media-library-plugin/src/Tables/Columns/SpatieMediaLibraryImageColumn.php
Outdated
Show resolved
Hide resolved
…s/SpatieMediaLibraryImageColumn.php
The docs should also be moved out of the plugin and into the main image column docs |
Agree. Mark as ready for review when you've implemented the requested changes, @Biostate! 😊 |
I moved the defaultImageUrl to base ImageColumn class then i updated both SpatieMediaLibraryImageColumn and ImageColumn 's getImagePath methods. |
Thanks |
I added defaultImageUrl method to show placeholders if model doesn't have any media.