diff --git a/resources/views/upload.blade.php b/resources/views/upload.blade.php index 7d1a6ec..bdf9d8d 100644 --- a/resources/views/upload.blade.php +++ b/resources/views/upload.blade.php @@ -1,3 +1,7 @@ +@php +$isCustomPlaceholder = isset($placeholder); +@endphp + @props([ 'multiple' => false, 'required' => false, @@ -91,7 +95,9 @@ class="{{ $attributes->get('class') }}" pond.setOptions(@js($pondProperties)); + @if($isCustomPlaceholder) pond.setOptions({ labelIdle: @js($placeholder) }); + @endif pond.addFiles(files) pond.on('addfile', (error, file) => {