blob: adc0ddcc46bc2491620b677ad563d016e8b08fec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
namespace Workbench\App\Livewire;
use Workbench\App\Models\Product;
use Lightscale\LaralightTables\Columns\Column;
/**
* @extends Table<Product>
*/
class OrdersTable extends Table
{
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'),
];
}
}
|