Without share.

This commit is contained in:
2019-11-15 12:14:38 +03:00
commit b3c03162f1
16 changed files with 898 additions and 0 deletions

20
src/helpers.php Normal file
View File

@ -0,0 +1,20 @@
<?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);
}
}