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

Support adding custom tags

This commit is contained in:
Samuel Štancl 2021-05-26 13:04:08 +02:00 committed by GitHub
parent 007a555d57
commit 00c74dd8d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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')`.