Fixes on tag_Groups and variations, add migrations
This commit is contained in:
@@ -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(),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user