| 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 $key |
||
| 25 | * @param mixed|null $default |
||
| 26 | * |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | 78 | public static function getConfig($key, $default = null) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Get the seo translation. |
||
| 36 | * |
||
| 37 | * @param string $key |
||
| 38 | * @param array $replace |
||
| 39 | * @param string $locale |
||
| 40 | * |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | 12 | public static function getTrans($key = null, $replace = [], $locale = null) |
|
| 47 | } |
||
| 48 |