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:
parent
169600dc2d
commit
22741d8a04
4 changed files with 26 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue