Skip to content

Commit d8898e2

Browse files
committed
fix blade
1 parent c4de728 commit d8898e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/views/components/img.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
$placeholderContents = $placeholder ? $media->getConversion($placeholder)?->contents : null;
3131
@endphp
3232

33-
<img {!! $attributes !!} loading="{{ $loading }}" src="{!! $src ?? $source?->getUrl($parameters) !!}"
33+
<img {!! $attributes !!} loading="{{ $loading }}" src="{!! $src ?? $source?->getUrl(parameters: $parameters) !!}"
3434
height="{{ $height ?? $source?->height }}" width="{{ $width ?? $source?->width }}" alt="{{ $alt ?? $source?->name }}"
3535
@if ($placeholderContents) style="background-size:cover;background-image: url(data:image/jpeg;base64,{{ $placeholderContents }})" @endif>

resources/views/components/video.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
3939
@endphp
4040

41-
<video {!! $attributes !!} src="{!! $src ?? $source?->getUrl($parameters) !!}" height="{{ $height ?? $source?->height }}"
41+
<video {!! $attributes !!} src="{!! $src ?? $source?->getUrl(parameters: $parameters) !!}" height="{{ $height ?? $source?->height }}"
4242
width="{{ $width ?? $source?->width }}" alt="{{ $alt ?? $source?->name }}" poster="{{ $poster }}"
4343
{{ when($autoplay, 'autoplay') }} {{ when($muted, 'muted') }} {{ when($playsinline, 'playsinline') }}
4444
{{ when($loop, 'loop') }}>

0 commit comments

Comments
 (0)