1
How can I perform the Artisan
as a specific environment?
'Cause when I spin
php artisan tinker
It is generating an error because it is recognizing the configuration of the production database. But I need to run it in the environment "local"
, because I have different bank settings in this environment.
I don’t want to have to change my file bootstrap/start.php
and check if it is running through the console $app->runningInConsole()
, because, when I update my data on the server, I want the artisan
ride in production environment.
Does anyone know how to define the environment in which the Artisan
at runtime?