1
0
Fork 0
mirror of https://github.com/archtechx/laravel-seo.git synced 2025-12-12 09:54:03 +00:00
This commit is contained in:
Samuel Štancl 2021-05-24 19:16:27 +02:00 committed by GitHub
parent 00197938d0
commit d6fb3d367c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -239,17 +239,17 @@ For example:
Once your view is created, register the extension: Once your view is created, register the extension:
```php ```php
seo()->extension('facebook', view: 'my-component') seo()->extension('facebook', view: 'my-component');
// The extension will use <x-my-component> // The extension will use <x-my-component>
``` ```
To set data for an extension (in our case `facebook`), simply prefix calls with the extension name in camelCase, or use the `->set()` method: To set data for an extension (in our case `facebook`), simply prefix calls with the extension name in camelCase, or use the `->set()` method:
```php ```php
seo()->facebookFoo('bar') seo()->facebookFoo('bar');
seo()->facebookTitle('About us') seo()->facebookTitle('About us');
seo()->set('facebook.description', 'We are a web development agency that ...') seo()->set('facebook.description', 'We are a web development agency that ...');
seo(['facebook.description' => 'We are a web development agency that ...']) seo(['facebook.description' => 'We are a web development agency that ...']);
``` ```
To disable an extension, set the second argument in the `extension()` call to false: To disable an extension, set the second argument in the `extension()` call to false: