1
0
Fork 0
mirror of https://github.com/archtechx/laravel-seo.git synced 2025-12-12 01:44:03 +00:00
laravel-seo/src/helpers.php
Samuel Štancl 2dc7b7048e Code quality
2021-05-24 11:25:02 +02:00

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);
}
}
}