1
0
Fork 0
mirror of https://github.com/archtechx/laravel-seo.git synced 2025-12-12 09:54:03 +00:00
This commit is contained in:
Vu Viet Phuong 2025-03-14 11:47:15 +00:00 committed by GitHub
commit e665173cec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 37 additions and 4 deletions

View file

@ -216,9 +216,13 @@ class SEOManager
}
/** Enable favicon extension. */
public function favicon(): static
public function favicon(string|bool $value = true): static
{
$this->extensions['favicon'] = true;
if (is_string($value) && !empty($value)) {
$this->set('favicon', $value);
}
$this->extensions['favicon'] = !!$value;
return $this;
}