Skip to content

Commit

Permalink
Fix cannot overrid edefault meta tags (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
joserick committed May 31, 2022
1 parent c411b84 commit 5554486
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,12 @@ public static function render(?string $tag = null): string

// register default tags on each request
foreach (config('f9web-laravel-meta.defaults') as $key => $value) {
if (is_int($key)) {
self::setRawTag($value);
} else {
self::set($key, $value);
if (!Arr::has(self::$tags, $key)) {
if (is_int($key)) {
self::setRawTag($value);
} else {
self::set($key, $value);
}
}
}

Expand Down

0 comments on commit 5554486

Please sign in to comment.