diff --git a/app/Console/Commands/ResetTesting.php b/app/Console/Commands/ResetTesting.php index 4385bae5..39101882 100644 --- a/app/Console/Commands/ResetTesting.php +++ b/app/Console/Commands/ResetTesting.php @@ -14,7 +14,7 @@ class ResetTesting extends Command * * @var string */ - protected $signature = '2fauth:reset-testing {--no-confirm}'; + protected $signature = '2fauth:reset-testing {--no-confirm} {--force}'; /** * The console command description. @@ -47,7 +47,9 @@ public function __construct() */ public function handle() { - if (! config('2fauth.config.isTestingApp')) { + $this->callSilently('config:clear'); + + if (! config('2fauth.config.isTestingApp') && ! $this->option('force')) { $this->comment('2fauth:reset-testing can only run when isTestingApp option is On'); return;