1
0
Fork 0
mirror of https://github.com/archtechx/laravel-seo.git synced 2025-12-12 18:04:03 +00:00

Adds support for og:locale

This commit is contained in:
Sven 2023-03-02 23:21:02 +01:00
parent 169600dc2d
commit 22741d8a04
No known key found for this signature in database
GPG key ID: CDBC5EB751FC92EC
4 changed files with 26 additions and 1 deletions

View file

@ -15,6 +15,7 @@ use Illuminate\Support\Str;
* @method $this site(string $site = null, ...$args) Set the site name.
* @method $this image(string $url = null, ...$args) Set the cover image.
* @method $this type(string $type = null, ...$args) Set the page type.
* @method $this locale(string $locale = null, ...$args) Set the page locale.
* @method $this twitter(enabled $bool = true, ...$args) Enable the Twitter extension.
* @method $this twitterCreator(string $username = null, ...$args) Set the Twitter author.
* @method $this twitterSite(string $username = null, ...$args) Set the Twitter author.
@ -56,7 +57,7 @@ class SEOManager
protected function getKeys(): array
{
return collect([
'site', 'title', 'image', 'description', 'url', 'type',
'site', 'title', 'image', 'description', 'url', 'type', 'locale',
'twitter.creator', 'twitter.site', 'twitter.title', 'twitter.image', 'twitter.description',
])
->merge(array_keys($this->defaults))