1
0
Fork 0
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:
Sven 2023-03-03 14:19:18 +01:00 committed by GitHub
parent 169600dc2d
commit 3a17c8ee11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 1 deletions

View file

@ -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.