1 | <?php |
||
2 | |||
3 | if (! function_exists('variable')) { |
||
4 | /** |
||
5 | * @param $name |
||
6 | * @param null $default |
||
0 ignored issues
–
show
Documentation
Bug
introduced
by
Loading history...
|
|||
7 | * @param null $locale |
||
0 ignored issues
–
show
|
|||
8 | * @return mixed |
||
9 | */ |
||
10 | function variable($name, $default = null, $langcode = null) |
||
11 | { |
||
12 | return app(\Fomvasss\Variable\VariableManagerContract::class) |
||
13 | ->setLang($langcode) |
||
14 | ->get($name, $default); |
||
15 | } |
||
16 | } |