1
0
Fork 0
mirror of https://github.com/archtechx/laravel-seo.git synced 2025-12-13 18:24:04 +00:00
This commit is contained in:
Lars Klopstra 2021-11-11 21:12:53 +01:00
parent 45fc1694de
commit 31fae087ff
2 changed files with 7 additions and 3 deletions

View file

@ -181,6 +181,10 @@ class SEOManager
/** Enable favicon extension. */
public function favicon(string $path): static
{
if (! class_exists(ImageManager::class)) {
throw new Exception('Intervention not available, please run `composer require intervention/image`');
}
$this->extensions['favicon'] = true;
$doesntHaveFavicon = ! file_exists(public_path('favicon.ico'));