File manager - Edit - /home/autoph/public_html/projects/tickets-autohub/vendor/livewire/livewire/src/Features/SupportValidation.php
Back
<?php namespace Livewire\Features; use Livewire\Livewire; class SupportValidation { static function init() { return new static; } function __construct() { Livewire::listen('component.dehydrate', function ($component, $response) { $errors = $component->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'] ?? [] ); }); } }
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings