src/Settings/Settings.php
protected function getAllSettingsFlat()
    {
        return $this->getAllSettings()->flatMap(function (Model $model) {
            return [$model->key => json_decode($model->value)[0]];
        });
    }
protected function getAllSettingsFlat()
    {
        return $this->getAllSettings()->flatMap(function (Model $model) {
            return [$model->key => json_decode($model->value)[0]];
        });
    }
protected function getAllSettingsFlat ( ) { return $ this -> getAllSettings ( ) -> flatMap ( function ( Model $ model ) { return [ $ model -> key => json_decode ( $ model -> value ) [ 0 ] ] ; } ) ; }
Get all settings as a flat collection.

@return \Illuminate\Support\Collection
Get all settings as a flat collection .