Php Livewire:model.defer在提交时显示空值(第二次)
这是我的刀片视图示例Php Livewire:model.defer在提交时显示空值(第二次),php,laravel,laravel-livewire,Php,Laravel,Laravel Livewire,这是我的刀片视图示例 <x-jet-form-section submit="store"> <div class="col-span-6 sm:col-span-4"> <x-jet-label for="name" value="{{ __('Name') }}" /> <x-jet-input na
<x-jet-form-section submit="store">
<div class="col-span-6 sm:col-span-4">
<x-jet-label for="name" value="{{ __('Name') }}" />
<x-jet-input name="name" wire:model.defer="name" type="text" class="mt-1 block w-full" autocomplete="off" />
<x-jet-input-error for="name" class="mt-2" />
</div>
</x-jet-form-section>
当我提交表单时,我会看到输入字段值。
然后我关闭debug windod(dd),再次按submit,现在该值为NULL
如果我将wire:model.defer更改为wire:model.lazy,则不会再次发生这种情况。它起作用了。
为什么
public function store() {
dd($this);
}