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 ec3958d commit aaac47fCopy full SHA for aaac47f
src/Illuminate/Foundation/Console/Kernel.php
@@ -146,7 +146,7 @@ public function handle($input, $output = null)
146
$this->commandStartedAt = Carbon::now();
147
148
try {
149
- if ($input->getFirstArgument() === 'env:decrypt') {
+ if (in_array($input->getFirstArgument(), ['env:encrypt', 'env:decrypt'], true)) {
150
$this->bootstrapWithoutBootingProviders();
151
}
152
@@ -327,7 +327,7 @@ public function registerCommand($command)
327
*/
328
public function call($command, array $parameters = [], $outputBuffer = null)
329
{
330
- if ($command === 'env:decrypt') {
+ if (in_array($command, ['env:encrypt', 'env:decrypt'], true)) {
331
332
333
0 commit comments