Filtering search results with livewire | Laravel livewire

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024

Комментарии • 21

  • @opahprincewill4103
    @opahprincewill4103 3 года назад

    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

  • @joyustcian222
    @joyustcian222 3 года назад +1

    You save my project. Thanks Man

  • @MarkChaney
    @MarkChaney 3 года назад +3

    A github repo of this would be nice.

  • @sky94132003
    @sky94132003 2 года назад +1

    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

  • @omarduenas5593
    @omarduenas5593 2 года назад

    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?

  • @MrAtomUniverse
    @MrAtomUniverse 2 года назад

    Did you try out power grid ?

  • @andreajohn4520
    @andreajohn4520 3 года назад

    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

  • @carsonbeerm.v3449
    @carsonbeerm.v3449 3 года назад

    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 😥

  • @charlietomas8007
    @charlietomas8007 2 года назад

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

  • @ivan_adamovich
    @ivan_adamovich 2 года назад

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

  • @smarthomer2677
    @smarthomer2677 3 года назад +2

    nice job, source code?

  • @SHADAN.__.KHAN077
    @SHADAN.__.KHAN077 2 года назад +1

    👍

  • @bieberbalazs6826
    @bieberbalazs6826 2 года назад

    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);
    })

    • @sawastacks
      @sawastacks  2 года назад

      'countries'=>Country::when($this->byLocation, function($query){
      $query->where('location_id', $this->byLocation);
      })
      ->when($this->byGDP, function($query){
      $query->where('gdp', $this->byGDP);
      })
      ->when($this->byAny, function($query){
      $query->where('any', $this->byAny);
      })

  • @fofanakangou6833
    @fofanakangou6833 Год назад

    video flou

  • @kuczaraszka6808
    @kuczaraszka6808 2 года назад

    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

  • @1337kaas
    @1337kaas 3 года назад

    Are you depressed? Voice is kinda monotone! :joy