I'm trying to pass
--env option to the migrate command with the env file which i'm creating just before running the migration like here is the sequence,
Note: the commands are running from the code using the
Artisan facade in the same request.
Artisan:call('migrate', ['--env' => 'migration']).
but, it is referring to the variables from the .env files
please, suggest me what is right, Thank you.
Sign in to participate in this thread!