Skip to content

Commit

Permalink
Avoid duplicate values on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
eusonlito authored Apr 26, 2022
1 parent c65b2a8 commit 2d2dee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Eusonlito/LaravelMeta/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public function tag($key, $default = '')
foreach ($this->config['tags'] as $tag) {
$class = __NAMESPACE__.'\\Tags\\'.$tag;

foreach ($values as $value) {
foreach (array_unique($values) as $value) {
$html .= $class::tag($key, $value);
}
}
Expand Down

0 comments on commit 2d2dee4

Please sign in to comment.