mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 09:54:03 +00:00
finished
This commit is contained in:
parent
051a32575c
commit
b12c9ecb55
21 changed files with 750 additions and 86 deletions
16
src/helpers.php
Normal file
16
src/helpers.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
use ArchTech\SEO\SEOManager;
|
||||
|
||||
if (! function_exists('seo')) {
|
||||
function seo(string|array $key = null): SEOManager|string|array|null
|
||||
{
|
||||
if (! $key) {
|
||||
return app('seo');
|
||||
} else if (is_array($key)) {
|
||||
return app('seo')->set($key);
|
||||
} else {
|
||||
return app('seo')->get($key);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue