Posts

Showing posts with the label environment-variables

Is there any other way to get Laravel to reload env variables?

Is there any other way to get Laravel to reload env variables? I have a shared hosting account on a well known host. I have my Laravel site uploaded and functioning for the most part. But I had to make an env change. Now I can't get Laravel to see the change. I know this is common issue. I have tried running the artisan commands to clear config and cache (php artisan config:cache & php artisan cache:clear ) but this fails with an error: Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home4/cmatthewc/cvbaptistapp/artisan on line 33 Is there any other way to get Laravel to refresh its cache from env? TY in advance... what version of laravel? Also, thats a PHP error in the artisan file, did you modify it? – Derek Jun 29 at 18:11 ...