| 1 | <?php namespace Arcanedev\LaravelSeo; |
||
| 9 | class Seo |
||
| 10 | { |
||
| 11 | /* ----------------------------------------------------------------- |
||
| 12 | | Constants |
||
| 13 | | ----------------------------------------------------------------- |
||
| 14 | */ |
||
| 15 | const KEY = 'laravel-seo'; |
||
| 16 | |||
| 17 | /* ----------------------------------------------------------------- |
||
| 18 | | Main Methods |
||
| 19 | | ----------------------------------------------------------------- |
||
| 20 | */ |
||
| 21 | /** |
||
| 22 | * Get the seo config. |
||
| 23 | * |
||
| 24 | * @param string|null $key |
||
| 25 | * @param mixed|null $default |
||
| 26 | * |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | 78 | public static function getConfig($key = null, $default = null) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Set the seo config. |
||
| 38 | * |
||
| 39 | * @param string $key |
||
| 40 | * @param mixed|null $value |
||
| 41 | */ |
||
| 42 | 78 | public static function setConfig($key, $value = null) |
|
| 46 | |||
| 47 | /** |
||
| 48 | * Get the seo translation. |
||
| 49 | * |
||
| 50 | * @param string $key |
||
| 51 | * @param array $replace |
||
| 52 | * @param string $locale |
||
| 53 | * |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | 15 | public static function getTrans($key = null, $replace = [], $locale = null) |
|
| 60 | } |
||
| 61 |