priyono priyono - 6 months ago 21x
PHP Question

Laravel 5.1 returns wrong config value

I have a custom Laravel config file called config/alfresco.php. The file is a special file to keep Alfresco config connection. Here is what it is look like:

| The address of Alfresco server
// http://<another IP>:9080/alfresco/api/-default-/public/cmis/versions/1.1/browser

| Alfresco username credential

'CMIS_BROWSER_USER' => 'admin',

I tried to get the config's value by calling the following:


However, it seems always to return wrong value. In my case, it is:

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

Note that the value that is called is the one that is commented. I tried to get rid of it, but it still comes with the same result. I am sure that the value is only appear on this config.

My another attempt is to do:

php artisan cache:clear

And it came with no luck.
Thanks in advance :)


Thanks to @James for pointing out the solution, it is:

php artisan config:clear

I am sure it was a cache on Laravel configuration. Hope this help for others :)


As you have changed some values in your config files, you should make sure you have cleared any cached versions of these - otherwise they won't reflect the latest changes.

To do this, just run php artisan config:clear.