---
title: 'LaraGrid: Excel-Like Tables for Laravel and Livewire'
source: 'https://youtube.com/watch?v=OW871ht_-RI'
video_id: 'OW871ht_-RI'
date: 2026-08-14
duration_sec: 420
---

# LaraGrid: Excel-Like Tables for Laravel and Livewire

> Source: [LaraGrid: Excel-Like Tables for Laravel and Livewire](https://youtube.com/watch?v=OW871ht_-RI)

## Summary

This video demonstrates LaraGrid, a Laravel and Livewire package that provides an Excel-like data table with advanced features such as keyboard navigation, dynamic calculations, and undo functionality. The presenter shows both a standard data table and a form for entering new orders, highlighting the package's ease of use and potential for e-commerce applications.

### Key Points

- **Introduction to LaraGrid** [00:00] — LaraGrid is a package for Laravel and Livewire that creates Excel-like tables. It was created by Vikas and initially developed as raw Laravel code before being packaged.
- **Demo Overview** [00:29] — The presenter shows an official demo at grid.laravelcloud and his own demo, which includes a data table and a form for new orders.
- **Data Table Features** [00:43] — The data table supports text filtering by customer and status, saving views, and exporting to CSV, Excel, and PDF.
- **Code Structure** [02:04] — The grid is built using a Livewire component with methods like grid make, query, authorize, and typical keywords similar to Filament. Columns are defined with classes like text column and computed column.
- **Excel-like Form Entry** [03:17] — The form allows keyboard navigation, auto-completion when typing product names, and dynamic recalculation of totals. Undo is available with Ctrl+Z.
- **Form Code Details** [04:33] — The form uses a separate Livewire component with default rows, new rows, search select columns, and a formula column for calculations. Saving is handled via wire submit and validation.
- **Saving and Conclusion** [06:31] — After hitting create order, the order appears in the table, demonstrating the package's functionality. The presenter recommends trying it for relevant use cases.

### Conclusion

LaraGrid offers a powerful and user-friendly solution for creating Excel-like tables in Laravel applications, with features that can impress customers and streamline data entry. It is worth trying for developers with such needs.

## Transcript

Hello guys, in this video I want to demonstrate to you a package called LaraBrit, Laravel and Livewire table like Excel. So this was showed to me by the author Vikas on Twitter.
So he made it first as raw Laravel code, probably for internal project, but then made it as a package with Fable. So yeah, AI helps with that, and this is pretty impressive actually. So you can have just a table with filters, but also you can have excel sheets to enter
the data. So let me show you both with a demo. First, there's official demo at grid.laravelcloud, where you can see the table and the booking entry form, and see the code and play around with it, but I've made my own demo.
So this is the table of data, and there's also a form for new order inside of Laravel's South Turkey LiveWire version, because LaraGrid is well powered by LiveWire. And let me show you
how it works, but before I do that, personal news, I will attend Laravel Live Denmark in a month, I didn't plan that, but I negotiated those two days with my wife, actually, so this is personal good news,
it's not a sponsorship or anything, but I advise you, if you want to meet me and other people like these, so impressive list of speakers for Taylor, Otwell and DHH on stage, probably for the first time ever, at Laracons, and then also they announced recently Aaron Francis will be there, so yeah, the list of
not even speakers, you can actually talk to all those people in the hallway, which is probably my favorite part of the conference, so yeah, I think tickets are still available, so I will be in Copenhagen in a month and I hope I will see you there Now let get back to Laragrid So this is kind of a typical data table with typical things like you can filter by text with customer then status for example confirmed Also you can save the views
So this is not really something extraordinary, but it just works as a data table. Also, you can export the data to CSV, Excel, and PDF. But data tables existed since like forever.
So I would not call it the strength of LaraGrid, but I will still show you the code briefly. So this is LiveLar component. So you have with LaraGrid and then you build your, well, grid like this. Grid make, query, then authorize, and then all the typical keywords, kind of similar even to filament in a way.
So filters, columns, and for each column there's a class, text column, there's also computer column and other types of columns. You can read about those in the docs. I don't want to stop on the syntax too much. I want to show the functionality.
Then there's action make. it does actually remind me of filament quite a lot. But generally there are a lot of things to customize, as you can see, so theme, strats, header and stuff like that. And also, of course, you can offload some logic to private functions
inside of the same library component, so status badge and orders query are used inside of here, so this status badge in computed column and order query should be here on top like this.
And then you render the blade like in a typical Livewire component, and inside of that index blade you call x lara grid. Again, a lot of things under the hood in syntax, you can leave them in the docs, but you get
the idea. It's kinda cool. But what is even cooler is this one. Let's add a new order. Let choose from customer let leave the nodes empty and now let start typing I click on a product and then start typing A and then Enter And look what happens here
Automatically completed. Does feel like Excel or Google Sheets. I click right arrow. I hit 2. Enter. And it's updated. So keyboard navigation is one of the powerful features here.
So I can navigate to put on discount, for example, right, right. Discount 10%. percent and this is again recalculated. DAT for example also 10 percent. So yeah it's all dynamic and this is the calculated column and calculated at the bottom the total amount. So let's add
another product. Click here. Start typing A again and let's add some other quantity like 3. Enter and what if I made some mistake? I hit ctrl z. C is back. So there's even undo with a typical
keyboard combination. And there are more keyboard shortcuts, again you can read them in the docs, but it does feel like Excel sheet. I like the feeling, the emotion basically. So that may be impressive for your customers, for your
users, if you add that package to your projects like e-commerce or something like that. And the code for that form is another LiveLar component. Create in the same folder, extends LiveLar component and again with Lara grid. But in this
case the syntax is a bit different so there's a function we will get to that in a minute but this is grids grid make and we have default rows you saw four empty rows then new rows using so
default values for the new row and then columns and this is where the logic is more complicated search select columns you saw that i started typing and then it started searching for the And then probably the most interesting part is formula column the last column which makes the calculations And this is how you write that formula like this
in just plain language, basically, with column names. And there's also footer aggregation of all the values of that line total in formula column. And then again, you render live wire
component, there's a private function for product options, and inside of that blade file, in addition to typical tailwind and live wire and flux components with starter kit there's wire submit save and again i will show you that in a minute but the main thing with rendering data grid is
the same thing x lara grid is just we need to add rows lines to save those lines in the create component lines should be a private property like this or public property and not private and now
saving part comes with that wire submit so this is outside of that grid but wire submit save and then it accepts the grid rows of lines then we validate those lines with typical variable
validator in this case it wasn't form request and then we have action class create order to well get the lines into the database like this so if i now hit create order on the bottom right
our order should be in the table. This is the one on top. It's in the database. So yeah, very cool data table plus data form excel sheet, whatever you call it, packaged with Laravel and Livewire.
I advise you to at least try it out if you have that use case. This was very impressive, but maybe I missed something. We can discuss in the comments below what other alternatives you have for such use case or what other packages would you use instead. That's it for this time and see you guys
in other videos.
