Building a Datatable with Livewire 3

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

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

  • @devopssimon
    @devopssimon 5 месяцев назад +2

    Brilliant video, Thank you. I used to use PHP many years ago before moving to JS, but looking at how the PHP ecosystem has progressed, I am keen to get back and get productive again.

  • @alexxgdx
    @alexxgdx Год назад +2

    Thank you for your Time ❤. I started learning Laravel and Livewire on my own a few weeks ago and that was the most informative 30min I’ve seen on this subject so far. Abo placed

  • @richardwheatley7194
    @richardwheatley7194 Год назад +1

    Livewire makes this very elegant. Very good tutorial which makes it clear and straightforward😃. Packages are overkill for these things IMO.

  • @SergioMeneses29
    @SergioMeneses29 2 месяца назад +1

    I'would like to know if you have the same error: when I change the value of the perPage dropDownlist (for example from 10 rows to 20 rows) and then navigate through the paginator, The paginator return to 10 rows per page instead of allow me navigate between pages with 20 rows per page.

    • @CodewithBurt
      @CodewithBurt  Месяц назад

      I think this is related to your other question...

  • @StefanSchmalhaus
    @StefanSchmalhaus Год назад +1

    Thank you very much for this great tutorial!

  • @SergioMeneses29
    @SergioMeneses29 2 месяца назад +1

    Thanks for your video! Everythig ok until I've got an error. After clic on perpage (50 register per page) and then clic on any page of the paginator I've got "The GET method is not supported for route livewire/update. Supported methods: POST". I've alredy added WithPagination on my component but the error is still happening. Any advice how to solve it?

    • @SergioMeneses29
      @SergioMeneses29 2 месяца назад

      I found the solutions with indicating the path, in my case: $providers->setPath(route('providers'));

    • @CodewithBurt
      @CodewithBurt  Месяц назад

      Sorry for my late response, I guess you're running into this issue because alpine isn't active in some way.

  • @llBestBoyll
    @llBestBoyll 2 месяца назад +1

    Thx that was very informative 🔥

  • @zackyhabibie3733
    @zackyhabibie3733 Год назад +1

    very clear.... i like how u code....
    n now i just want u to make more videos 😂

  • @miguelmenchuxoyon4191
    @miguelmenchuxoyon4191 6 месяцев назад +1

    In Livewire 3 and Laravel 11, you must to add the WithPagination trait and publish Livewire's pagination views to render page navigation links

  • @binaryfire
    @binaryfire Год назад +1

    Thanks for the recent content. Livewire makes complex things so easy. Regarding the scope: wouldn't it be better to return early if $value is null? No point in adding those where clauses in that case.

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

      You could do that. But most of the time performance would be the same.

    • @binaryfire
      @binaryfire Год назад +1

      @@CodewithBurt It’s more about team consistency. Better to do it everywhere to avoid performance issues than try and decide on a case-by-case basis IMHO.

    • @CodewithBurt
      @CodewithBurt  9 месяцев назад

      It all depends on the use-case indeed.

  • @marklouis7222
    @marklouis7222 7 месяцев назад +1

    wire:model doesn't work in my project. How to fix? it doesn't get the value of the perPage.

    • @CodewithBurt
      @CodewithBurt  7 месяцев назад

      Be sure to check if you installed Livewire correctly, maybe you have 2 instances of Alpine included, or some other javascript error. Try checking your console output.

  • @igapaja
    @igapaja 4 месяца назад +1

    wow, it's like magic! thank you. anyway i have a question, i already use WithPagination, but sometime still got "The GET method is not supported for route livewire/update. Supported methods: POST." error, i need your help, thanks

    • @CodewithBurt
      @CodewithBurt  4 месяца назад

      Have you tried php artisan optimize:clear ?

  • @AhmadFariz-oy5os
    @AhmadFariz-oy5os 9 месяцев назад +1

    i follow this video, why my datatable is very slowly to sort asc & desc.
    i dont know where my problem.

    • @CodewithBurt
      @CodewithBurt  9 месяцев назад

      It all depends on the server you're using, how many data you're trying to query and render.
      Can you give some specifics?

  • @nathanlumban
    @nathanlumban 9 месяцев назад +1

    "I want to ask about how to solve this so that regular html can do this"

  • @javi-alcala
    @javi-alcala 11 месяцев назад +1

    Thanks, Im was stuck with tutorials on Livewire 2 and they work dont using Livewire 3

    • @CodewithBurt
      @CodewithBurt  11 месяцев назад

      I'd suggest updating your Livewire2 projects to Livewire3, it's a game changer. :-)

  • @0zankurt
    @0zankurt Год назад

    Just use a package...

    • @CodewithBurt
      @CodewithBurt  Год назад +6

      What's the fun about that right 😁. You could use a package indeed, but we're trying to learn the habit of how to create stuff here.