| 1 | <?php namespace Arcanesoft\Seo\Entities; |
||
| 11 | class Locales |
||
| 12 | { |
||
| 13 | /* ----------------------------------------------------------------- |
||
| 14 | | Main Methods |
||
| 15 | | ----------------------------------------------------------------- |
||
| 16 | */ |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Get all the supported locales. |
||
| 20 | * |
||
| 21 | * @return \Illuminate\Support\Collection |
||
| 22 | */ |
||
| 23 | 8 | public static function all() |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Get all the supported locales keys. |
||
| 30 | * |
||
| 31 | * @return \Illuminate\Support\Collection |
||
| 32 | */ |
||
| 33 | 2 | public static function keys() |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Get a supported locale by its key. |
||
| 40 | * |
||
| 41 | * @param string $key |
||
| 42 | * @param string|null $default |
||
| 43 | * |
||
| 44 | * @return string|null |
||
| 45 | */ |
||
| 46 | 4 | public static function get($key, $default = null) |
|
| 50 | } |
||
| 51 |