diff options
author | Sam Light <samlight1994@gmail.com> | 2025-03-28 01:07:59 +0000 |
---|---|---|
committer | Sam Light <samlight1994@gmail.com> | 2025-03-28 01:07:59 +0000 |
commit | 80a183a94bd344c3ac08109019fdc7d341a57a6e (patch) | |
tree | 94430858a1a39219fe73f83b4c85e0f5cd3a0b1c /workbench/app/Livewire | |
parent | 1f81ce361cb454b1655d6e2a7ac031bc1e3b2ede (diff) |
Setup categories table, model and factory
Diffstat (limited to 'workbench/app/Livewire')
-rw-r--r-- | workbench/app/Livewire/CategoriesTable.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/workbench/app/Livewire/CategoriesTable.php b/workbench/app/Livewire/CategoriesTable.php index 14cd5a8..722385f 100644 --- a/workbench/app/Livewire/CategoriesTable.php +++ b/workbench/app/Livewire/CategoriesTable.php @@ -2,21 +2,19 @@ namespace Workbench\App\Livewire; -use Workbench\App\Models\Product; +use Workbench\App\Models\Category; use Lightscale\LaralightTables\Columns\Column; class CategoriesTable extends Table { - protected $model = Product::class; + protected $model = Category::class; public function columns(): array { return [ Column::make('id', 'ID'), Column::make('name', 'Name'), - Column::make('price', 'Price'), - Column::make('stock', 'Stock'), ]; } } |