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:
parent
1b2bfb2945
commit
5ca343a116
6 changed files with 66 additions and 1 deletions
12
README.md
12
README.md
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue