Answer the question
In order to leave comments, you need to log in
How to change APP_ENV (environment) values ​​in Laravel?
I would like to change the values ​​of APP_ENV when executing console commands to console
in place production
or local
.
I know about .env file :)
I want to change these values ​​in code...
artisan
commands I've created for specific purposes), these event handlers should not fire. APP_ENV
, that is, in event handlers, check APP_ENV != 'console'
then process, if equal to console
then skip processing. And console command
I would change APP_ENV
to console
.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question