I am getting attribute value from env file like this
{{env('PUSHER_APP_KEY')}}
It stops working when i use php artisan optimize command
Then Again I have to use php artisan config:clear
What could be the solution of it?
I am getting attribute value from env file like this
{{env('PUSHER_APP_KEY')}}
It stops working when i use php artisan optimize command
Then Again I have to use php artisan config:clear
What could be the solution of it?
Copyright © 2021 Jogjafile Inc.
Better create a
configfile inconfig folderFor example name
configfile asconstant.phpthen you can access like this
once you have created config:cache then it wont read from env file.