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