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

Refactor to command (#13)

* wip

* wip

* wip
This commit is contained in:
Lars Klopstra 2021-11-15 18:07:09 +01:00 committed by GitHub
parent 5ca343a116
commit 7b24a50bd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 113 additions and 34 deletions

View file

@ -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.**