mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 09:54:03 +00:00
Merge be53cea433 into 0a2eef4db4
This commit is contained in:
commit
e665173cec
3 changed files with 37 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue