public static function getSetting($key)
    {
        $setting = Settings::all()->where('settingsKey', $key)->first();
        if($setting) {
            return $setting->value;
        }
        return;
    }
public static function getSetting($key)
    {
        $setting = Settings::all()->where('settingsKey', $key)->first();
        if($setting) {
            return $setting->value;
        }
        return;
    }
public static function getSetting ( $ key ) { $ setting = Settings :: all ( ) -> where ( 'settingsKey' , $ key ) -> first ( ) ; if ( $ setting ) { return $ setting -> value ; } return ; }
Get a setting

@param  $key
@throws \Exception
Get a setting