Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Change array in config? #16

Open
h4yfans opened this issue Mar 17, 2017 · 0 comments
Open

Change array in config? #16

h4yfans opened this issue Mar 17, 2017 · 0 comments

Comments

@h4yfans
Copy link

h4yfans commented Mar 17, 2017

I have a code line like this in my config file.

'locales' => [
        'en',
        'fr',
        'es' => [
            'MX', // mexican spanish
            'CO', // colombian spanish
        ],
    ],

I want to change with this.

'locales' => [
          'tr',
          'en',
],
 $newArr = [
'en',
'tr'
]

When I try $config->set('locales, $newArr'); I getting error.
Unable to rewrite key "locales.1" in config, rewrite failed

@h4yfans h4yfans changed the title Change two dimension array in config? Change array in config? Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant