Some Validations Updated

This commit is contained in:
Devansh 2022-02-02 13:04:39 +05:30
parent 59e49320f7
commit 8c800bc925
1 changed files with 3 additions and 12 deletions

View File

@ -9,18 +9,9 @@
<product-image></product-image>
<span class="control-error" v-if="{!! $errors->has('images.*') !!}">
@php
$count = 1;
@endphp
@foreach ($errors->get('images.*') as $key => $message)
@php
echo str_replace($key, 'Image' . $count, $message[0]);
$count++;
@endphp
@endforeach
<span
class="control-error"
v-text="'{{ $errors->first('images.files.*') }}'">
</span>
<span class="control-info mt-10">{{ __('admin::app.catalog.products.image-size') }}</span>