Without share.
This commit is contained in:
20
src/helpers.php
Normal file
20
src/helpers.php
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user