Filtering search results with livewire | Laravel livewire

preview_player
Показать описание
In this video, we will see how you can filter search results using laravel livewire.
Рекомендации по теме
Комментарии
Автор

Question is, when clicking 'Edit' to edit a record, I am guessing that a new page is displayed (maybe a modal?), and after saving the changes, is the 'countries' page (index) keeping the filters applied?

omarduenas
Автор

Hello, Thanks for your tutorial.

I find a bug and I dont know how to fix it.

when I change page to ?page=23, if I select change the option. I will got the empty data because current page=xxx.

So, I think when change the select option, liverwire to clear the $this->prePage will be better. But I cant do it

sky
Автор

This was good!! but where is the get() method in the livewire ?? it didn't work for me without it, for that the pagination didn't work 😥

carsonbeerm.v
Автор

hello when I am searching somethin in input field its shows me 404 page not found error I have done all the configuration related to livewire but nothing is working please help me out
Thanks

andreajohn
Автор

bro this is very great. I have never since this filter using ajax. No one has done it using livewire. thank u very much. Pls can you make filter using checkboxes so that one can have multiple set of results. thank u bro

opahprincewill
Автор

Hello, can I ask if you GitHub repository for this tutorial

charlietomas
Автор

Hi bro, it's nice lesson but in that code very easy make SQL injection

ivan_adamovich
Автор

Great Tutorial Thank you for your hard work.
Can you help me how can i add more dropdown filter?
like another this:
'countries'=>Country::when($this->byLocation, function($query){
$query->where('location_id', $this->byLocation);
})

bieberbalazs
Автор

This is a bit of shit code :
1) because based on the laravel documentation, the return and get() functions are missing
2)This code is vulnerable to SQL injection

kuczaraszka
Автор

Are you depressed? Voice is kinda monotone! :joy

kaas