I would like to know if anyone knows how I can remove the temporary image preview in Laravel Livewire.
I have the following input file:
@if ($imagenes)
previsualización:
@foreach($imagenes as $img)
<img class="img-fluid w-25 my-2 contenedor-img" src="{{ $img->temporaryUrl() }}">
@endforeach
@endif
I need to add a button to delete any of the selected images.
The load is carried out in the following way:
@if ($imagenes)
<small>previsualización:</small>
<br>
@foreach($imagenes as $key => $img)
<img class="img-fluid w-25 my-2 contenedor-img" src="{{ $img->temporaryUrl() }}">
<button wire:click="eliminarImagen({{ $key }})">
Delete
</button>
@endforeach
@endif