Skip to content

Commit 77d3b68

Browse files
committed
Remove environment check
1 parent 411ce49 commit 77d3b68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Foundation/Console/EnvironmentEncryptCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Illuminate\Console\Command;
77
use Illuminate\Encryption\Encrypter;
88
use Illuminate\Filesystem\Filesystem;
9-
use Illuminate\Support\Env;
109
use Symfony\Component\Console\Attribute\AsCommand;
1110

1211
#[AsCommand(name: 'env:encrypt')]
@@ -63,7 +62,8 @@ public function __construct(Filesystem $files)
6362
public function handle()
6463
{
6564
$cipher = $this->option('cipher') ?: 'aes-128-cbc';
66-
$key = $keyPassed = $this->option('key') ?: Env::get('ENVIRONMENT_ENCRYPTION_KEY');
65+
$key = $this->option('key');
66+
$keyPassed = $key !== null;
6767
$environmentFile = $this->option('env')
6868
? base_path('.env').'.'.$this->option('env')
6969
: $this->laravel->environmentFilePath();

0 commit comments

Comments
 (0)