Friday, March 17, 2017

How to modify Config in Laravel

I have a config file and this file contain this code lines

config/translatable.php

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

I want to change this line to;

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

I tried third party packages but they don't support array config values.



via John

Advertisement