What about
@livewireAssets
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am using laravel 6
I am following the video instructions on Building Data Tables with lifewire I have installed livewire and created a component which creates a controller and a blade page
now this commands: wire:model, wire:click are not working.
Livewire controller
<?php
namespace App\Http\Livewire;
use App\Post;
use Livewire\Component;
class PostsPage extends Component
{
public $search = 'Jerad Schmidt';
public function render()
{
return view('livewire.posts-page', [
'posts' => Post::where(
'title', 'LIKE', '%' . $this->search . '%'
)->orWhere(
'body', 'LIKE', '%' . request('search') . '%'
)->get()
]);
}
}
Livewire Blade page
<div>
<div>
<h2 class="is-size-3 has-text-centered mb-small">Latest Info </h2>
<div style="padding: .2em 1em;">
<input wire:model="search" class="input mb-medium" type="text" placeholder="Search through posts">
</div>
@foreach ($posts as $post)
@include('sections/partials/_post')
@endforeach
</div>
</div>
where I include livewire
<div class="container">
<div class="mt-medium">
<div class="columns">
<div class="column is-three-quarters">
@livewire('posts-page')
</div>
<div class="column">
Hello world from the other side of the country
</div>
</div>
</div>
</div>
@nakov @bugsysha After a a whole day struggle I actually got this to work, the problem was with this keyword defer on my app.blade.php
<script src="{{ asset('js/app.js') }}" defer></script>
I dont know what the keyword does but when I remove the keyword "defer" everything now works fine
Thanks all for your effort in assisting me debug this issue
Please or to participate in this conversation.