芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/vendor/livewire/livewire/src/RenameMe/SupportValidation.php
getErrorBag()->toArray(); // Only persist errors that were born from properties on the component // and not from custom validators (Validator::make) that were run. $response->memo['errors'] = collect($errors) ->filter(function ($value, $key) use ($component) { return $component->hasProperty($key); }) ->toArray(); }); Livewire::listen('component.hydrate', function ($component, $request) { $component->setErrorBag( $request->memo['errors'] ?? [] ); }); } }