mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 09:54:03 +00:00
syntax
This commit is contained in:
parent
00197938d0
commit
d6fb3d367c
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
|
@ -239,17 +239,17 @@ For example:
|
|||
Once your view is created, register the extension:
|
||||
|
||||
```php
|
||||
seo()->extension('facebook', view: 'my-component')
|
||||
seo()->extension('facebook', view: '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:
|
||||
|
||||
```php
|
||||
seo()->facebookFoo('bar')
|
||||
seo()->facebookTitle('About us')
|
||||
seo()->set('facebook.description', 'We are a web development agency that ...')
|
||||
seo(['facebook.description' => 'We are a web development agency that ...'])
|
||||
seo()->facebookFoo('bar');
|
||||
seo()->facebookTitle('About us');
|
||||
seo()->set('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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue