summaryrefslogtreecommitdiff
path: root/workbench/app/Livewire/OrdersTable.php
blob: 97ef19585427a548606b229dc3dfc1683272a6cf (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 OrdersTable 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'),
        ];
    }
}