php - Laravel 5.1 returns wrong config value -


i have custom laravel config file called config/alfresco.php. file special file keep alfresco config connection. here like:

   <?php /* |-------------------------------------------------------------------------- | cmis browser url |-------------------------------------------------------------------------- | | address of alfresco server | */ // http://<another ip>:9080/alfresco/api/-default-/public/cmis/versions/1.1/browser 'cmis_browser_url' => 'http://192.168.1.5:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser',  /* |-------------------------------------------------------------------------- | cmis browser user |-------------------------------------------------------------------------- | | alfresco username credential | */  'cmis_browser_user' => 'admin', 

i tried config's value calling following:

config::get('alfresco.cmis_browser_url'); 

however, seems return wrong value. in case, is:

http://<another ip>:9080/alfresco/api/-default-/public/cmis/versions/1.1/browser 

note value called 1 commented. tried rid of it, still comes same result. sure value appear on config.

my attempt do:

php artisan cache:clear 

and came no luck. in advance :)


solution:

thanks @james pointing out solution, is:

php artisan config:clear 

i sure cache on laravel configuration. hope others :)

as have changed values in config files, should make sure have cleared cached versions of these - otherwise won't reflect latest changes.

to this, run php artisan config:clear.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -