You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
422 B
20 lines
422 B
<?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);
|
|
}
|
|
}
|