Files
einundzwanzig-portal/app/Http/Livewire/Tables/CityTable.php
2022-11-29 23:37:57 +01:00

27 lines
532 B
PHP

<?php
namespace App\Http\Livewire\Tables;
use App\Models\City;
use Rappasoft\LaravelLivewireTables\DataTableComponent;
use Rappasoft\LaravelLivewireTables\Views\Column;
class CityTable extends DataTableComponent
{
protected $model = City::class;
public function configure(): void
{
$this->setPrimaryKey('id');
}
public function columns(): array
{
return [
Column::make("Stadt Name", "name")
->sortable()
->searchable(),
];
}
}