1
0
Fork 0
mirror of https://github.com/archtechx/laravel-seo.git synced 2025-12-12 01:44:03 +00:00

Add support for Favicons (#11)

* wip

* wip

* wip

* Update tests/Pest/FaviconTest.php

Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>

* Update tests/Pest/FaviconTest.php

Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>

* Update README.md

Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
This commit is contained in:
Lars Klopstra 2021-11-14 19:28:19 +01:00 committed by GitHub
parent 1b2bfb2945
commit 5ca343a116
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 66 additions and 1 deletions

View file

@ -99,6 +99,18 @@ When a value is set specifically for Twitter, it will be prioritized over the ge
seo()->twitterTitle('About us')
```
### Favicons
By default, no favicon links will be included. You can manually enable the extension by calling:
```php
seo()->favicon('path/to/logo.png');
```
We'll generate a 32x32px `public/favicon.ico` & `public/favicon.png` icon. This should be sufficient for most cases.
**Please keep in mind that you need to install the [imagick](https://pecl.php.net/package/imagick) php extension and [intervention/image](http://image.intervention.io/) composer package.**
### Defaults
To configure default values, call the methods with the `default` argument: