Skip to content

Commit 90efb12

Browse files
authored
Merge pull request #10 from hulifeng/master
修改 command jwt 配置
2 parents c942c22 + d256673 commit 90efb12

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Command/JwtCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ protected function execute(Input $input, Output $output)
3636
$file->addComment('Jwt 配置');
3737
$file->setStrictTypes();
3838

39-
$config = config('jwt');
40-
$config['default']['signerKey'] = randomKey();
39+
$config = config('jwt.apps.admin');
40+
$config['token']['signerKey'] = randomKey();
4141
$config = 'return '.Helpers::dump($config).';';
4242

4343
file_put_contents($this->app->getConfigPath().'jwt.php', $file.$config);

0 commit comments

Comments
 (0)