diff --git a/README.md b/README.md index 799edd0..f9d0ff7 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ return [ 'reminder' => [ 'password', 'user', 'token' ] - ] + ], /* * in short: @@ -82,18 +82,29 @@ return [ * 'reminder.token' * ] */ + + // Set the keys of config properties you want to use in javascript. + // Caution: Do not expose any configuration values that should be kept privately! + 'config' => [ + 'app.debug' + ], + + // Disables the config cache if set to true, so you don't have to run `php artisan js-localization:refresh` + // each time you change configuration files. + // Attention: Should not be used in production mode due to decreased performance. + 'disable_config_cache' => false, ]; ``` __Important:__ -The messages configuration will be cached when the JsLocalizationController is used for the first time. After changing the messages configuration you will need to call __`php artisan js-localization:refresh`__ to refresh that cache. +The messages configuration will be cached when the JsLocalizationController is used for the first time. After changing the messages configuration you will need to call __`php artisan js-localization:refresh`__ to refresh that cache. That also affects the config properties you export to javascript, since they are cached, too. Usage ----- -You just need to add the neccessary `