Create a Grid
To create a grid, you need to extend the BaseLaraGrid
class and implement the getColumns
, and getDataSource
methods.
In the getColumns
method, you define the columns that will be displayed in the grid. The Column::make
method takes two arguments: the model field and the label.
The getDataSource
method should return an instance of Illuminate\Database\Eloquent\Builder
for the model you want to display in the grid.
Last updated