From 00c74dd8d6b8976f5a486eb736f7e9e39137ba96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Wed, 26 May 2021 13:04:08 +0200 Subject: [PATCH] Support adding custom tags --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 0c7f0c0..99ea62f 100644 --- a/README.md +++ b/README.md @@ -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`. +### 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(''); +``` + ### 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')`.