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

Merge branch 'master' of github.com:archtechx/laravel-seo

This commit is contained in:
Samuel Štancl 2021-05-26 13:05:30 +02:00
commit 6df030c28d

View file

@ -226,6 +226,15 @@ This package is completely flexible, and can be customized either by having its
You can publish the Blade views by running `php artisan vendor:publish --tag=seo-views`. You can publish the Blade views by running `php artisan vendor:publish --tag=seo-views`.
### Extra tags
To add more tags to the head, you can use the `tag()` and `rawTag()` methods:
```php
seo()->tag('fb:image', asset('foo'));
seo()->rawTag('<meta property="fb:url" content="bar" />');
```
### Extensions ### Extensions
To use a custom extension, create a Blade *component* with the desired meta tags. The component should read data using `{{ seo()->get('foo') }}` or `@seo('foo')`. To use a custom extension, create a Blade *component* with the desired meta tags. The component should read data using `{{ seo()->get('foo') }}` or `@seo('foo')`.