mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 01:44:03 +00:00
Adds support for og:locale (#28)
This commit is contained in:
parent
169600dc2d
commit
3a17c8ee11
4 changed files with 26 additions and 1 deletions
11
README.md
11
README.md
|
|
@ -52,6 +52,7 @@ url(string $url)
|
|||
title(string $title)
|
||||
description(string $description)
|
||||
image(string $url)
|
||||
locale(string $locale)
|
||||
|
||||
twitterCreator(string $username)
|
||||
twitterSite(string $username)
|
||||
|
|
@ -158,6 +159,16 @@ If you wish to change the URL, call `seo()->url()`:
|
|||
seo()->url(route('products.show', $this->product));
|
||||
```
|
||||
|
||||
### Locale
|
||||
|
||||
To set the `og:locale` property:
|
||||
|
||||
```php
|
||||
seo()->locale('de_DE');
|
||||
```
|
||||
|
||||
Expected format is `language_TERRITORY`.
|
||||
|
||||
### Modifiers
|
||||
|
||||
You may want to modify certain values before they get inserted into the template. For example, you may want to suffix the meta `<title>` with `| ArchTech` when it has a non-default value.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue