21 lines
422 B
PHP
21 lines
422 B
PHP
|
<?php
|
||
|
|
||
|
use Efriandika\LaravelSettings\Facades\Settings;
|
||
|
|
||
|
if (!function_exists('settings'))
|
||
|
{
|
||
|
/**
|
||
|
* @param string|null $key
|
||
|
* @param null $default
|
||
|
* @return mixed|\Efriandika\LaravelSettings\Facades\Settings
|
||
|
*/
|
||
|
function settings($key = null, $default = null)
|
||
|
{
|
||
|
if (is_null($key)) {
|
||
|
return app('settings');
|
||
|
}
|
||
|
|
||
|
return Settings::get($key, $default);
|
||
|
}
|
||
|
}
|