Fixes on tag_Groups and variations, add migrations

This commit is contained in:
Ludovic CANDELLIER
2022-01-25 22:25:18 +01:00
parent 9b6bac5545
commit ed1d87a7d1
39 changed files with 1125 additions and 21 deletions

View File

@@ -12,14 +12,15 @@ class TagGroupsDataTable extends DataTable
public function query(TagGroup $model)
{
$model = $model::withCount('tags');
$model = $model::with('article_family')->withCount('tags');
return $this->buildQuery($model);
}
protected function getColumns()
{
return [
Column::make('name'),
Column::make('code')->title('Code'),
Column::make('name')->title('Nom'),
Column::make('tags_count')->title('#Tags')->searchable(false)->addClass('text-right')->width(60),
$this->makeColumnButtons(),
];