You are probably using Livewire 3.
In the new version, you have to add .live to live update the property.
<input wire:model.live="test" type="text" />
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi.. I'm having some trouble with livewire. This very basic component is not updating at all:
Template:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Test</title>
@livewireStyles
</head>
<body>
<livewire:test />
@livewireScripts
</body>
</html>
Component controller:
<?php
namespace App\Livewire;
use Livewire\Component;
class Test extends Component
{
protected $debug = true;
public $test = 'blablabla';
public function render()
{
return view('livewire.test');
}
}
Component view:
<div>
<input wire:model="test" type="text" />
output: {{ $test }}
</div>
On initial page laod the field is filled in with the 'blablabla'. That's okay. But when I change the text nothing happens. What am I missing?
This is the resulting source code of the page, so you can see livewire is loaded correctly:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Test</title>
<!-- Livewire Styles --><style >[wire\:loading], [wire\:loading\.delay], [wire\:loading\.inline-block], [wire\:loading\.inline], [wire\:loading\.block], [wire\:loading\.flex], [wire\:loading\.table], [wire\:loading\.grid], [wire\:loading\.inline-flex] {display: none;}[wire\:loading\.delay\.shortest], [wire\:loading\.delay\.shorter], [wire\:loading\.delay\.short], [wire\:loading\.delay\.long], [wire\:loading\.delay\.longer], [wire\:loading\.delay\.longest] {display:none;}[wire\:offline] {display: none;}[wire\:dirty]:not(textarea):not(input):not(select) {display: none;}[x-cloak] {display: none;}</style>
</head>
<body>
<div wire:snapshot="{"data":{"test":"blablabla"},"memo":{"id":"OaTud2gQpFWGvA13ISLW","name":"test","path":"admin","method":"GET","children":[],"errors":[],"locale":"en"},"checksum":"3f5e0e7bfccbdc56cb92518bb96db49b7a652464cf4311d5318d7340dc360912"}" wire:effects="[]" wire:id="OaTud2gQpFWGvA13ISLW">
<input wire:model="test" type="text" />
output: blablabla
</div>
<!-- Livewire Scripts -->
<script src="/livewire/livewire.js?id=f41737f6" data-csrf="faEKc24avFbBLucGZbnW7Jr5hGxLk7HDizm8Z84R" data-uri="/livewire/update" data-navigate-once="true"></script>
</body>
</html>
Please help
Please or to participate in this conversation.