mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 01:44:03 +00:00
parent
5ca343a116
commit
7b24a50bd6
5 changed files with 113 additions and 34 deletions
12
README.md
12
README.md
|
|
@ -104,9 +104,19 @@ seo()->twitterTitle('About us')
|
|||
By default, no favicon links will be included. You can manually enable the extension by calling:
|
||||
|
||||
```php
|
||||
seo()->favicon('path/to/logo.png');
|
||||
seo()->favicon();
|
||||
```
|
||||
|
||||
## Generating favicons
|
||||
|
||||
To generate favicon, run:
|
||||
|
||||
```
|
||||
php artisan seo:generate-favicons public/path-to/logo.png
|
||||
```
|
||||
|
||||
from the artisan console. If no path argument is given we'll fallback to `public/assets/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.**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue