Vue + Laravel API: Table Search and Column Search

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

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

  • @saledokic
    @saledokic 4 года назад +1

    I already made exactly the same functionality for search on keyUp. I have to mention that this can cause "Too many requests" server error so I would highly recommend that you use some delay when you are typing. Just add an interval that will be reset on every keyup within 500ms (0.5s). that will actually fire your ajax request 500ms after the last key pressed.

    • @UmerTahir5
      @UmerTahir5 4 года назад +1

      I was thinking the exact same thing. On service used by many, this would ultimately crash at some point.

  • @coldfronthc
    @coldfronthc 4 года назад

    Hey Povilas. Thank you so much for all the good videos. I started a new laravel project with vue for some weeks ago and your videos come to the right time. :) Keep going your good work.

  • @gfetea
    @gfetea 4 года назад

    Thank you very much for publishing this video.

  • @rin.k
    @rin.k 4 года назад +1

    Again Nice tutorial as always... always learn something from every video.
    One suggestion i would like to add tho.
    Will it be better to create scope on the model rather than querying from the controller itself. The controller seems to have too much code.
    I was thinking that making scope would hide most logic from the controller and make the controller a little cleaner.

    • @codingmonkey2003
      @codingmonkey2003 4 года назад

      It's good but personally, if the query is not repeated more than once then I wouldn't bother using a scope and all other but It is just a personal preference.

    • @rin.k
      @rin.k 4 года назад

      @@codingmonkey2003 yeah it all comes down to personal preferences. I personally liked less code on my controller.

  • @franciskisiara
    @franciskisiara 4 года назад +3

    Hey Povilas - I appreciate your videos. They fill in simple everyday gaps we encounter as SDEs. Just a question on whether you have a discord channel where we (the community) can share thoughts about your videos. I would love to share but sometimes complementing solutions are tied to packages we have put together ourselves. Sharing here wouldn't bode well since that is self promoting and riding on another person's (your) content.

    • @PovilasKorop
      @PovilasKorop 4 года назад +1

      I think it's perfectly fine to share here! I view this RUclips channel as a community, maybe not that structured but totally great! Currently not planning to create any separate community or Discord, just don't have time to manage *another* community :)

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

    Hi, How about API that download file like image, xls, xlsx, etc ? I tried to create it with passing header content-type, it's work in web route, but it does't work in api route. how to solve it? please...

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

    Important question : How can i also column search data (say product name ) relational data that is associated with that category ?? i tried to solve it but could not help myself but using the client side searching technique. Can you do it on server side searching?

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

    Thanks, Povilas for short and simple example how use server side sorting and search. How you use paginate links on Vue?

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

      With this: github.com/gilbitron/laravel-vue-pagination

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

      @@LaravelDaily haello sir, help in composition api to creat search bar laravel8, vue3

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

    Facing issue to build search bar with laravel 8 + vue3 in composition api. Please help..

  • @Hanna-iz6kp
    @Hanna-iz6kp 2 года назад +1

    Can you help me please. It's very important. I want to bind meilisearch in vue3. I did it in vue3 but when I delete or update something in database and try to search it doesn't work . Do you have tutorials how to do this ? I will pay for you . Please help me 🙏😭

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

      I don't have tutorials about meilisearch

    • @Hanna-iz6kp
      @Hanna-iz6kp 2 года назад

      @@LaravelDaily can you make a tutorial please? I will pay for you . Its important for me !! 🙏🙏

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

    Hey Povilas, thank you for the videos, well i have a question which many people asked related to (When and If ) conditions in laravel, which one do you think is faster in terms of performance. Thank you!!! keep going we all love the effort.

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

    what's the content of PostResource::collection($posts);

  • @JLDRPT
    @JLDRPT 4 года назад

    Good video, but I will continue using Datatables.net that contains almost all the functionality we need.

    • @MrDach0
      @MrDach0 4 года назад

      I agree datatables are great, but sometimes you just have to use dynamic fetching from backend because of performances, cashing, and a couple of other issues, and to my mind, this really is a great solution :)

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

    But how to update browser url with all this params ?

  • @zubayerhossain7074
    @zubayerhossain7074 4 года назад

    How to search table Column with another relational table data?

  • @noelremasu
    @noelremasu 4 года назад

    Hi, Thank you so much for your educative videos. In a short time I mastered a lot of skills through watching your videos.
    I have this one problem that I can't seem to work it out.
    I want to implement a dateBetween filter(start_date, end_date) feature in my report page where I can select dates based on "created_at" fields.
    Please advise how can I best implement this?

  • @thatsenam9183
    @thatsenam9183 4 года назад

    Please make video on livewire modal