Tweak file input error (multiple input bug)
This commit is contained in:
@@ -24,5 +24,16 @@
|
|||||||
<x-sk::form.help>{{ $help }}</x-sk::form.help>
|
<x-sk::form.help>{{ $help }}</x-sk::form.help>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<x-sk::form.error :name="$name" />
|
@if($type === 'file' && $multiple)
|
||||||
|
@foreach ($errors->get( rtrim($name, []) . '.*') as $messages)
|
||||||
|
@foreach ($messages as $message)
|
||||||
|
<p class="text-sm text-error mt-1">
|
||||||
|
{{ $message }}
|
||||||
|
</p>
|
||||||
|
@endforeach
|
||||||
|
@endforeach
|
||||||
|
@else
|
||||||
|
<x-sk::form.input-error :name="$name" />
|
||||||
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user