1
0
Fork 0
mirror of https://github.com/archtechx/laravel-seo.git synced 2025-12-13 18:24:04 +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

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