summaryrefslogtreecommitdiff
path: root/workbench/app/Livewire/CategoriesTable.php
blob: 0fedd719bb08def8e9ea8707874ba9ab9ca75acb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

namespace Workbench\App\Livewire;

use Lightscale\LaralightTables\Columns\Column;
use Workbench\App\Models\Category;

/**
 * @extends Table<Category>
 */
class CategoriesTable extends Table
{
    protected $model = Category::class;

    public function columns(): array
    {
        return [
            Column::make('id', 'ID'),
            Column::make('name', 'Name'),
        ];
    }
}