Answer the question
In order to leave comments, you need to log in
Running an Artisan command outside of the console, why doesn't it work as expected?
When the command is called, it seems that the value of the --env option is not taken into account and instead of clearing the database for tests, it cleans the main database. Why is that?
Artisan::call('db:wipe', [
'--database' => 'mysql_1', '--drop-views' => true, '--env' => 'testing'
]);
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