src/Setting.php
public function get($key)
    {
        $setting = SettingModel::where('key', $key)->first();

        return $setting ? $setting->value : false;
    }
public function get($key)
    {
        $setting = SettingModel::where('key', $key)->first();

        return $setting ? $setting->value : false;
    }
public function get ( $ key ) { $ setting = SettingModel :: where ( 'key' , $ key ) -> first ( ) ; return $ setting ? $ setting -> value : false ; }
Get value by a key.

@param string $key

@return mixed
Get value by a key .