fixes
This commit is contained in:
@@ -13,7 +13,7 @@ class SpeciesDataTable extends DataTable
|
||||
|
||||
public function query(Specie $model)
|
||||
{
|
||||
$model = $model::withCount(['images','varieties','tags'])->with(['genre','image','tags']);
|
||||
$model = $model::withCount(['images', 'varieties', 'tags'])->with(['genre', 'image', 'tags']);
|
||||
return $this->buildQuery($model);
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ class SpeciesDataTable extends DataTable
|
||||
->editColumn('tags2', function (Specie $specie) {
|
||||
$html = '';
|
||||
foreach ($specie->tags as $tag) {
|
||||
$html .= '<span class="btn btn-xs btn-secondary pb-2">' . $tag->slug . '</span> ';
|
||||
$html .= '<span class="btn btn-xs btn-secondary pb-2">' . $tag->slug . '</span> ';
|
||||
}
|
||||
return $html;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user