mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 01:44:03 +00:00
18 lines
382 B
PHP
18 lines
382 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use ArchTech\SEO\SEOManager;
|
|
|
|
if (! function_exists('seo')) {
|
|
function seo(string|array $key = null): SEOManager|string|array|null
|
|
{
|
|
if (! $key) {
|
|
return app('seo');
|
|
} elseif (is_array($key)) {
|
|
return app('seo')->set($key);
|
|
} else {
|
|
return app('seo')->get($key);
|
|
}
|
|
}
|
|
}
|