I’m trying to test a laravel upgrade on our production server.
I created a new vhost and copied the entire directory over of the original laravel app to the new vhost root.
So I have app.mydomain.com with the original (laravel 5.8 app) and l6.mydomain.com with the copied version.
My issue is that if I make any changes to the views on l6.mydomain.com I can’t see any change yet if I make changes to the views on app.mydomain.com the updates are visible on both…
I assumed I’d made an error in the vhost file and was looking at the same installation on both domains but it looks correct and in fact any changes to the Controllers or other PHP files works fine it is just the views that are being replicated across both.
Sorry it’s a bit of a convoluted question but any help much appreciated.
Advertisement
Answer
Laravel holds a cache of the config file at bootstrap/cache/config.php
. This can be cleared with php artisan config:clear
as explained in better detail here: how to clean Laravel Bootstrap cache config file?.