芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/vendor/livewire/livewire/src/RenameMe/SupportFileUploads.php
{$property} = TemporaryUploadedFile::unserializeFromLivewireRequest($value); } }); Livewire::listen('property.dehydrate', function ($property, $value, $component, $response) { $uses = array_flip(class_uses_recursive($component)); if (! in_array(WithFileUploads::class, $uses)) return; $newValue = $this->dehydratePropertyFromWithFileUploads($value); if ($newValue !== $value) { $component->{$property} = $newValue; } }); } public function dehydratePropertyFromWithFileUploads($value) { if (TemporaryUploadedFile::canUnserialize($value)) { return TemporaryUploadedFile::unserializeFromLivewireRequest($value); } if ($value instanceof TemporaryUploadedFile) { return $value->serializeForLivewireResponse(); } if (is_array($value) && isset(array_values($value)[0]) && array_values($value)[0] instanceof TemporaryUploadedFile && is_numeric(key($value))) { return array_values($value)[0]::serializeMultipleForLivewireResponse($value); } if (is_array($value)) { foreach ($value as $key => $item) { $value[$key] = $this->dehydratePropertyFromWithFileUploads($item); } } return $value; } }