Wednesday 12 May 2021

Laravel 5.7 ENV variable not read

// Clears application cache (Laravel's own redis like cache)

https://laravel.com/docs/4.2/cache#:~:text=Laravel%20provides%20a%20unified%20API,Redis%20out%20of%20the%20box.

//  To clear it 

php artisan cache:clear


// Including .env file, when you add new stuff make sure to call this

php artisan config:clear



https://stackoverflow.com/questions/43243732/laravel-5-env-always-returns-null

Other clear commands :

php artisan config:clear
php artisan cache:clear
php artisan view:clear
php artisan route:clear
composer dump-autoload



No comments:

Post a Comment