We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2982f1 commit 4272845Copy full SHA for 4272845
src/Commands/MakeCriterionCommand.php
@@ -67,7 +67,7 @@ protected function createCriterion()
67
if ($this->laravel->runningInConsole() && $this->fileManager->exists($filePath)) {
68
$response = $this->ask("The criterion [{$fileName}] already exists. Do you want to overwrite it?", 'Yes');
69
70
- if ($response != 'Yes') {
+ if (!$this->isResponsePositive($response)) {
71
$this->line("The criterion [{$fileName}] will not be overwritten.");
72
return;
73
}
0 commit comments