public static function getAllSettings()
    {
        $settings = Settings::all();

        $settingsList = [];
        foreach($settings as $setting){
            $settingsList[$setting->settingsKey] = $setting->value;
        }

        return $settingsList;
    }
public static function getAllSettings()
    {
        $settings = Settings::all();

        $settingsList = [];
        foreach($settings as $setting){
            $settingsList[$setting->settingsKey] = $setting->value;
        }

        return $settingsList;
    }
public static function getAllSettings ( ) { $ settings = Settings :: all ( ) ; $ settingsList = [ ] ; foreach ( $ settings as $ setting ) { $ settingsList [ $ setting -> settingsKey ] = $ setting -> value ; } return $ settingsList ; }
Get all settings as a list

@return array
@throws \Exception
Get all settings as a list