File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Illuminate/Foundation/Console Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 6
6
use Illuminate \Console \Command ;
7
7
use Illuminate \Encryption \Encrypter ;
8
8
use Illuminate \Filesystem \Filesystem ;
9
- use Illuminate \Support \Env ;
10
9
use Symfony \Component \Console \Attribute \AsCommand ;
11
10
12
11
#[AsCommand(name: 'env:encrypt ' )]
@@ -63,7 +62,8 @@ public function __construct(Filesystem $files)
63
62
public function handle ()
64
63
{
65
64
$ 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 ;
67
67
$ environmentFile = $ this ->option ('env ' )
68
68
? base_path ('.env ' ).'. ' .$ this ->option ('env ' )
69
69
: $ this ->laravel ->environmentFilePath ();
You can’t perform that action at this time.
0 commit comments