Files
opensem/app/DataTables/Shop/PriceGenericCategoriesDataTable.php
Ludovic CANDELLIER f99b81544f fixes
2021-04-05 22:41:16 +02:00

27 lines
495 B
PHP

<?php
namespace App\Datatables\Shop;
use Yajra\DataTables\Html\Column;
use App\Datatables\ParentDataTable as DataTable;
use App\Models\Shop\PriceGenericCategory;
class PriceGenericCategoriesDataTable extends DataTable
{
public $model_name = 'price_generic_categories';
public function query(PriceGenericCategory $model)
{
return self::buildQuery($model);
}
protected function getColumns()
{
return [
Column::make('name')->title('Nom'),
self::makeColumnButtons(),
];
}
}