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