We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a368f9e commit e82a6d2Copy full SHA for e82a6d2
src/Console/HashCommand.php
@@ -12,7 +12,7 @@ class HashCommand extends Command
12
*
13
* @var string
14
*/
15
- protected $signature = 'passport:hash';
+ protected $signature = 'passport:hash {--force : Force the operation to run without confirmation prompt}';
16
17
/**
18
* The console command description.
@@ -34,7 +34,7 @@ public function handle()
34
return;
35
}
36
37
- if ($this->confirm('Are you sure you want to hash all client secrets? This cannot be undone.')) {
+ if ($this->option('force') || $this->confirm('Are you sure you want to hash all client secrets? This cannot be undone.')) {
38
$model = Passport::clientModel();
39
40
foreach ((new $model)->whereNotNull('secret')->cursor() as $client) {
0 commit comments