blob: 92287b949c99c7a6101d817e28255eff2263195d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
namespace Workbench\App\Livewire;
use Workbench\App\Models\Product;
use Lightscale\LaralightTables\TableComponent;
use Lightscale\LaralightTables\Columns\Column;
class CategoriesTable extends TableComponent
{
protected $model = Product::class;
public function columns(): array
{
return [
Column::make('id', 'ID'),
Column::make('name', 'Name'),
Column::make('price', 'Price'),
Column::make('stock', 'Stock'),
];
}
}
|