Skip to content
Discussion options

You must be logged in to vote

On name

alt="{{ $media->name }}"

<img{!! $attributeString !!}@if($loadingAttributeValue) loading="{{ $loadingAttributeValue }}"@endif src="{{ $media->getUrl($conversion) }}" alt="{{ $media->name }}">

Also using custom properties and custom views
https://spatie.be/docs/laravel-medialibrary/v10/advanced-usage/using-custom-properties
https://spatie.be/docs/laravel-medialibrary/v10/responsive-images/customizing-the-rendered-html

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fredsal
Comment options

Answer selected by HamasakiBrain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants