Это видео недоступно.
Сожалеем об этом.

Build Data Table with Livewire 3 for beginners

Поделиться
HTML-код
  • Опубликовано: 17 авг 2024
  • Welcome to our livewire 3 course, in this course we will cover all the basis needed to build dynamic front end components using livewire. Today we cover how to build a a data table from scratch with search, filters, ability to change items per page, url query params, delete functionality and sorting.
    Time Stamps:
    -----------------------------
    00:00 - Demo
    02:15 - Setup Template
    05:00 - Create Component
    06:40 - Display Users
    09:35 - Per Page
    12:00 - Search
    15:15 - Role Filter
    18:20 - Delete User
    23:34 - Sorting
    HTML table template file:
    gist.github.co...
    Full project Code :
    github.com/yel...
    Free Livewire 3 Course Playlist :
    • Laravel Livewire 3 Cou...
    Tailwind CDN :
    tailwindcss.co...
    Alpine JS :
    alpinejs.dev/e...
    Through out the course we will cover:
    - how to make components
    - Actions
    - Properties
    - Form Submission and Validation
    - Flash Messages
    - Tables and Pagination
    - File Uploads
    - Inline Components
    - Full page Components and Layouts
    - Events
    - Offline States
    - URL Query Parameters
    - Nesting Components
    - Navigate
    - Loading states, Lazy loading and placeholders
    - Modals
    - Alpine JS
    And more
    Livewire 3 website :
    livewire.larav...
    Boostrap Documentation:
    getbootstrap.c...
    If you would like me to make more livewire videos, please let me know by liking the video and commenting what you like to learn next.
    What is livewire:
    Livewire is a full-stack framework for Laravel that makes building dynamic interfaces simple, without leaving the comfort of Laravel. (Taken from Livewire Documentation)

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

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

    I wish more videos that dealt with coding were as clearly explained and (even more importantly) as easy to read as this. Professionally prepared and delivered. Great stuff !

  • @kouzokiodin3623
    @kouzokiodin3623 Месяц назад +1

    This is the best livewire video ever thank u so muuch Mr. Matin!

  • @fabiorpittol
    @fabiorpittol 8 месяцев назад +4

    Thank you very much for this whole Livewire 3 series.

    • @yelocode
      @yelocode  8 месяцев назад +1

      Thank you for the super thanks.

  • @Naoufal933
    @Naoufal933 11 месяцев назад +6

    This is awesome! Continue with the Livewire videos! 👍

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

      Thanks for watching! Will do!

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

    Thanks, this clarified much doubt that I have...

  • @MiroslavCada
    @MiroslavCada 11 месяцев назад +6

    Hi Martin. absolutely awesome video and content. Datatables are a really useful part of dashboards. It would be great if you continued on this topic in future, like some Excel and PDF export, some kind of dropdown with checkboxes to enable/disable columns, but also you can do more advanced next steps with refactoring code etc. Really enjoying your content, You should have some kind of "by me a coffee" or so, at least to show some appreciation for your time and effort and so on. Hope you will continue with your amazing Laravel / Livewire/ Tailwind content.

    • @yelocode
      @yelocode  11 месяцев назад +1

      Hi Miroslav, Thank you for watching, I'm really glad you're enjoying the videos.
      Will definitely be looking into expanding on this topic, specially now that I seen there is high interest .
      Currently I'm looking into potential ways for supporting the channel and what other successful channels have done, since it's quite common for dev youtubers to quit after a while, I don't want that to happen to this channel. Will hopefully add something in the coming weeks. Thank you

  • @NasrulHazimMohamad
    @NasrulHazimMohamad 11 месяцев назад +2

    nice. a good example of the data table with Livewire 3.

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

      Glad you liked the video. Thank you for watching.

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

    Clear and easy to understand tutorial. Great job 👍

    • @yelocode
      @yelocode  6 месяцев назад

      Thanks for watching

  • @dancyvybes
    @dancyvybes 3 месяца назад +1

    You are extremely good at this. Amazing!!!

  • @muhammedthansil
    @muhammedthansil 9 месяцев назад +2

    Nothing to say, absolutely awesome video man. Great content 👍

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

      Glad you enjoyed it. Thanks for watching.

  • @reihanboo
    @reihanboo 10 месяцев назад +2

    You're a livesaver man. Much love

  • @ashkaanizadi
    @ashkaanizadi 11 месяцев назад +1

    mamnoon Matin jan. lezat bordam az filme amoozeshit. mersi 👍

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

      Mersi Ashkan jan. Lotf darid.

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

    Great video 👍, easy to follow and understand.

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

      Glad it was helpful!

  • @sudhirsingh1459
    @sudhirsingh1459 6 месяцев назад +4

    Hi Martin its great video
    Please make on exporting in csv Excel pdf ❤

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

      Thanks for watching.
      Will try making a part 2 with csv export🙏.

  • @kiransuresh9542
    @kiransuresh9542 11 месяцев назад +4

    Tailwind table is really beautiful
    Can you do a dashboard

  • @helderneves91
    @helderneves91 11 месяцев назад +1

    just found this channel, really good stuff!

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

      Welcome to the channel, Thanks for watching.

  • @majidmohammadian
    @majidmohammadian 11 месяцев назад +2

    very good

    • @yelocode
      @yelocode  11 месяцев назад +1

      Thank you for watching Majid.

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

      I have seen all your videos related to livewire and I can boldly say that it was one of the most effective videos. I have been working with PHP for 12 years and I have been working with Laravel for almost 5 years. You are also quick in explaining and You can also describe the content well, I hope you won't be upset if I make a new video of your content on my channel in Persian language so that the people of Iran can also use it.@@yelocode

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

      Indeed, those voices like BOOM that you say in the video make it more attractive, it's very good@@yelocode

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

    Great Video, Thanks Yelo Code

  • @metaversewallet
    @metaversewallet 5 месяцев назад

    Great video, thanks for all the wisdom sir!!

  • @taslimsuman
    @taslimsuman 10 месяцев назад +1

    Really love it. I just made it.

    • @yelocode
      @yelocode  10 месяцев назад

      Thanks for watching. Glad to hear that.

  • @nazgyl
    @nazgyl 11 месяцев назад +1

    Indeed an amazing video.

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

      Thank you

  • @scientist.entity6609
    @scientist.entity6609 8 месяцев назад +1

    Thank you a lot for your amazing work

    • @yelocode
      @yelocode  8 месяцев назад

      Thanks for watching.

  • @ENG.AhmedMohamed
    @ENG.AhmedMohamed 2 месяца назад

    ممكن تعمل حلقة كامل بتشرح فيها Livewire🥺

  • @diogocarlos9898
    @diogocarlos9898 3 месяца назад

    Hello, great video.
    I have a question, can this example be created in Livewire/volt?
    Thanks

  • @wmafendi
    @wmafendi 11 месяцев назад +1

    very important video. Cool again

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

      Glad you think so. Thank you for watching.

  • @user-dv9mg6pr6g
    @user-dv9mg6pr6g 10 месяцев назад

    Livewire has turned PHP into what many long-time developers think, "Messy code", an incredible number of methods to achieve things that would be more efficient with a Front written in JavaScript (React, Vue, Angular...). In addition to consuming the server in a very inefficient way to render HTML from the server, in the end they will need to learn JS and when they face tests with tools like JMeter they will realize that this is not a solution to even consider.

  • @md.mizanurrahman5852
    @md.mizanurrahman5852 7 месяцев назад +1

    Great content

  • @eramitgupta271
    @eramitgupta271 11 месяцев назад +2

    Thank you sir ❤

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

      Thank you for the idea suggestion.

  • @mibrahim4245
    @mibrahim4245 5 месяцев назад

    This is amazing as usual ..
    But one question, do livewire and the datatable js cdn conflict?
    So we can't use the default pagination that comes from datatable cdn ?

  • @mahdimiad
    @mahdimiad 11 месяцев назад +1

    I gave it a like before even I watch

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

      Same here,

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

      This should be an amazing one

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

      haha same here :)

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

      Haha, Thanks guys :)

  • @HamadAbdulla_7
    @HamadAbdulla_7 11 месяцев назад +2

    Thank you ☺

    • @yelocode
      @yelocode  11 месяцев назад +1

      Thanks for watching

  • @narheben
    @narheben 11 месяцев назад +1

    This is great, thanks a lot

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

      Thanks for watching

  • @julianlugod
    @julianlugod 11 месяцев назад +1

    This is awesome.

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

      Thank you for watching.

  • @ousssika5359
    @ousssika5359 11 месяцев назад +1

    thanks for the videos man

  • @DR9Productions
    @DR9Productions 11 месяцев назад +1

    Fantastic Tutorial! Thank you so much! Can you show how to do it with sweetAlert modals? Would be nice as a security feature that on record delete it would check if the user deleting it is an admin and confirm it with password. Just in case of an admin stolen session. Thank you so much again for sharing your knowledge with us

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

      Thank you for watching. Great Idea, Will try to cover that in up coming videos hopefully.

  • @real.silencewench
    @real.silencewench 3 месяца назад +1

    sir martin good day wherever you are... im a fan of your vids, but i have some issue lately
    I cannot recall where you discussed it, but I require a solution wherein when you load the same URL on another tab (let's say we have tab 1 and 2), and you delete a user on tab 1, of course, tab 2 needs to reload so that the same user won't be deleted. However, it does not occur for me. Can you assist me?

  • @onnewf9288
    @onnewf9288 11 месяцев назад +1

    this is awesome, thank you sir

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

      Glad to hear that. Thank you for watching.

    • @onnewf9288
      @onnewf9288 10 месяцев назад

      @@yelocode this is a bit much but could you please make inline editing on this datatable aswell please 🙂

  • @ousssika5359
    @ousssika5359 11 месяцев назад +1

    thanks for the video man thanks a lot

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

      Glad to help

  • @joaocouto90
    @joaocouto90 5 месяцев назад

    Is it responsive? I find that's the problem with datatables... but i found ine for livewire is called "Power Grid" that have some kind of "reactiveness". Can someone point a good one out?

  • @StingyyDZN
    @StingyyDZN 8 месяцев назад

    How do you handle bulk actions for paginated tables?

  • @user-js8db6fk4m
    @user-js8db6fk4m 10 месяцев назад

    Very nice tutorial, thank you

    • @yelocode
      @yelocode  10 месяцев назад

      Thank you for watching.

  • @binaryfire
    @binaryfire 11 месяцев назад +1

    Great videos mate! Could you do one on wrapping a JS component in a Livewire component? I'd like to be able to use things like Flatpickr or TinyMCE in my Livewire forms

    • @yelocode
      @yelocode  11 месяцев назад +1

      Thanks for watching. Great suggestion. I will add it to list of livewire videos to make.

  • @clnhancale
    @clnhancale 11 месяцев назад +1

    very nice video

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

    Great tutorial! It would be good to validate the field before sending the request, right?

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

      Thanks for watching. Yes, you want to validate the data, specially before storing them in the database.

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

      Even to check what data the user enters in the search field? Have you planned a tutorial for this?@@yelocode

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

      For the search field, it's not required, unless you want to force the search query to be more than a specific number of characters.

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

      I do have a video planned for covering, how to validate properties like the search incase you need to validate them.

  • @angelfireful
    @angelfireful 11 месяцев назад +1

    💪💪💪💪💪 great!

  • @jaisuigeneris
    @jaisuigeneris 10 месяцев назад

    The pagination links seems to break on sorting or searching....any idea why?

  • @lfan_tv
    @lfan_tv 11 месяцев назад +1

    This is awesome. But I got one question is about can Livewire3 work with the Flowbite. Because I try doing the wire:navigate on in dropdown menu but the dropdown is cannot open. If I remove wire:navigate it's work

    • @yelocode
      @yelocode  11 месяцев назад +1

      For me it works on first page render, after I change the page, it stops working.
      This is because wire:navigate does not re run the js files to make the experience faster so since your html elements are changed your menu stops working. 2 possible solutions are, 1 : you wrap your navigation menu with something like @persist('nav), this makes it so it's not re-rendered. 2. you can use the livewire hooks to rerun the dropdown initialisation when the page changes.
      For pages that have same layout I just wrap it with persist and seems to work well so far.

    • @lfan_tv
      @lfan_tv 11 месяцев назад +1

      @yelocode okay thanks you bro. 🙂

  • @tetianakulieshova1479
    @tetianakulieshova1479 10 месяцев назад

    What I need to do to have a page parameter in the url? It's not showing in the query string

  • @user-jc4ir3ld8w
    @user-jc4ir3ld8w 11 месяцев назад

    Love this series! Can you list which VS Code extensions you use on it?

    • @yelocode
      @yelocode  11 месяцев назад +2

      Thanks for watching.
      These are all the Laravel related extensions I'm using at the moment:
      - Monokai Pro theme
      - PHP Intelephense
      - Laravel Blade
      - Laravel Blade Snippets
      - Laravel Blade formatter
      - Livewire Language Support
      - Vetur
      - Tailwind CSS IntelliSen

  • @ismailbouaichi1834
    @ismailbouaichi1834 11 месяцев назад +1

    this is awesome can u do charts plssss

    • @yelocode
      @yelocode  11 месяцев назад +1

      Sure thing, Will add that to the list of videos ideas to cover

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

    Hi Martin.....Thanks for this video.. You are awesome. Subscribed

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

      Thank you. Glad the videos are helpful. Welcome to the channel.

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

      Hi martin...just curious.....Can livewire be run with jquery? jquery chart for example, or jquery datatable maybe? so we don't have to make it yourself from scratch? is it possible? considering that there are many paid templates, all of the libraries use jquery

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

      Yes, You can, livewire won't cause any issues, but still you will need to write a php api to provide the data for those data tables unless it comes with laravel backend code as well.
      If you want an easy to use databale with livewire you can check out filament table builder : filamentphp.com/docs/3.x/tables/installation

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

      Hi @@yelocode What if I don't use tailwind but use bootstrap? I usually use jquery datatable with bootstrap in all my projects and when I try in livewire 3, I get an error Uncaught ReferenceError: $ is not defined, when the page is refreshed manually instead of by moving the page using "nav-link"

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

      @@yelocode I've used wire:ignore (didn't know it's still useful in version 3) for ignore table from livewire. cmiiw

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

    Its awesome bro... Can you please have something like cropping image while uploading it in livewire?

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

      Thank you for watching. Will add that to list of videos ideas to make.

  • @adrianc0516
    @adrianc0516 10 месяцев назад +1

    Hello, are you using server side?

    • @yelocode
      @yelocode  10 месяцев назад

      Yes, everything is loaded server side.

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

    So this was just for learning to understand how what we have learnt so far can be applied?? There are already packages which have gat all this figured out

  • @shahzadwaris7193
    @shahzadwaris7193 11 месяцев назад +1

    It would be awesome if you create a video about the filament table package.

    • @yelocode
      @yelocode  11 месяцев назад +1

      I will do that this coming week. Great Idea Shahzad.

  • @mahdimiad
    @mahdimiad 11 месяцев назад +1

    How about Chart with livewire ?

    • @yelocode
      @yelocode  11 месяцев назад +1

      Will try to make a video on charts as well. There is a package for building charts as well if you want something out the boxgithub.com/asantibanez/livewire-charts

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

    Is this serverside datatable with yajra? i have problem handling big number of data using datatable

    • @yelocode
      @yelocode  11 месяцев назад +1

      No, not using yajra. It's all livewire and laravel code.

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

      ​@@yelocodesorry, any idea to improve speed on datatable.? I have table with 10k but it's slowly 😅

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

      @@ilhamlutfi5815 You should look into adding indexes to your table on columns that are searchable and also sortable. That should greatly improve the performance. If you are also displaying relationships in your table, make sure you are eager loading them, this can be a big performance hit as well.
      If above don't improve it enough, you can use laravel debug bar, to see all the queries laravel is generating and pin point the slow queries. Hope this can help solve your issue. If you also try some other methods and get good results. Let me know so I can inform other viewers if they have similar issues.

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

      any recommendation forserver side datatable for livewire@@yelocode

    • @ilahazs
      @ilahazs 10 месяцев назад

      @@gofarperdana2659 why do you even needed datatable for livewire? you can create your own table like what in this video.

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

    Is wire:key still necessary with Livewire 3? Caleb seemed to indicate it wasn't in this part of his launch video: ruclips.net/video/U-N8Qqq02b0/видео.htmlfeature=shared&t=193

    • @yelocode
      @yelocode  11 месяцев назад +1

      For normal elements or conditional parts of your view, no.
      But for loops it's still required, specially if you have pagination.
      livewire.laravel.com/docs/components#adding-wirekey-to-foreach-loops

  • @dm._.315
    @dm._.315 11 месяцев назад +1

    Please make a video of the data table livewire package🥲☺

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

      I will be releasing that video soon. Hopefully by end of this week

  • @maanbashir-z8e
    @maanbashir-z8e Месяц назад

    @Yelo Code
    hellow i am facing some issue
    when i install livewire 3 in my project its run fine but when i use this project any other pc its not work.
    i also done Route clear, livewire vendor publish everey thing but its not work
    This link video help you to more understand
    www.loom.com/share/f76d05f7bffb49e79b5bfaa382147001?sid=d7439881-5ff5-4501-beee-94a726236302
    whenever i click on pagination bar or somthing search in search or select row i get this "request url not found" and also get error in my network tab"localhost/livewire/update
    "404 not found
    can you please help me out to fix it