How can I do to run Artisan
as a specific environment?
Well when I squeeze
php artisan tinker
Generating an error because it is recognizing the configuration of the production database. But I need to run it in the "local"
environment because I have different bank settings in that environment.
I do not want to have to change my bootstrap/start.php
file and check if it is running through the console through $app->runningInConsole()
, because when I update my data on the server, I want artisan
to run in environment production.
Does anyone know how to set the environment where Artisan
at runtime?