简体   繁体   English

如果我们在输入上使用wire.model.defer,我们如何使用livewire在laravel中应用实时验证?

[英]How can we apply real time validation in laravel using livewire, if we are using wire.model.defer on input?

I want to use livewire real time validation, but i can't because i am using wire.model.defer to prevent loading each time, is there any way i can use real time validation with wire.model.defer on each input field?我想使用 livewire 实时验证,但我不能,因为我使用的是 wire.model.defer 来防止每次加载,有什么方法可以在每个输入字段上使用 wire.model.defer 实时验证? any help would be great.任何帮助都会很棒。

use simple way by v-model and check if accept your rules or not通过v-model使用简单的方法并检查是否接受您的规则

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 延迟更新 [wire:model.defer] 不适用于 Laravel Livewire 中模态内的文本区域输入 - Defer updating [wire:model.defer] not working for a textarea input within a modal in Laravel Livewire 如何使用 laravel-livewire 对 2 个输入值求和 - How can i sum 2 input values using laravel-livewire Meilisearch Laravel Livewire 组件 - 使用 wire 时未选中的复选框消失:model - Meilisearch Laravel Livewire component - unchecked checkboxes disappearing when using wire:model 我们如何在不使用node.js的情况下使用socket.io进行核心php中的实时聊天对话 - How can we use socket.io for real time chat conversation in core php without using node.js 我们如何使用Laravel在数据库中按ID计数项目 - how we can count items by id in database using laravel 我们如何使用雄辩的方式在laravel 5.4中选择和更新表? - How can we select and update a table in laravel 5.4 using eloquent? Laravel 8 - 线:输入模型不起作用 - Laravel 8 - wire:model on input not working Laravel LiveWire 2:我们是否必须制作新的 class 或者我们可以像传统的 Controller 一样做 - Laravel LiveWire 2 : Do we have to make a new class or we can do like traditional Controller 我们可以使用PHP在视频上应用Instagram效果吗? - Can we apply Instagram effects on a video using PHP? Laravel Livewire 线:点击不触发 - Laravel Livewire wire:click not firing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM