简体   繁体   中英

How can I refresh the .env file in Laravel if there's no root access?

I am on a shared hosting. I am not the developer but I just changed a value in the .env file but the change is not reflecting on the main site. I even tried by opening http://siteurl.com/clear-cache(it says cache cleared) but it didn't work. How can I refresh it without root access? I can hardcode the value for now as a temporary hack but I want to make it work via the .env file.

In order to clear cache of config in Laravel 5

php artisan config:clear
php artisan config:cache
php artisan cache:clear
php artisan route:cache
php artisan optimize

with those command you will clear all cache and go on

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM