Hi all,
Any help here would be appreciated. Just started with Livewire tonight and setup a simple project. I can’t seem to get any wire: events to fire. I’m also not seeing any errors in the browser console nor any errors or any network activity at all for that matter in the XHR console. Livewire 2, Laravel 7.2.
Search.php
<?php
namespace App\Http\Livewire\Search;
use Livewire\Component;
class Search extends Component
{
public $message;
public function render()
{
$this->message = "Rendered";
return view('backend.livewire.search.search')
->extends('backend.livebase');
}
public function test()
{
$this->message = "It Works!!";
}
public function resetFilters()
{
$this->reset('message');
}
}
search.blade.php
@section(‘content’)
<button wire:click="resetFilters()">Reset</button>
<input wire:model="message" type="text">
This {{ $message }}
@endsection(‘content’)
livebase.blade.php
@livewireStyles@yield('content')
@livewireScripts
</body>
Dev Console: