Add message for 4.1.0 update script
This commit is contained in:
parent
6032297baa
commit
b4e23ce79f
|
|
@ -6,6 +6,17 @@ use Artisan;
|
||||||
$artisan->resolveCommands([\Laravel\Passport\Console\KeysCommand::class]);
|
$artisan->resolveCommands([\Laravel\Passport\Console\KeysCommand::class]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$tips = [];
|
||||||
|
|
||||||
Artisan::call('jwt:secret', ['--no-interaction' => true]);
|
Artisan::call('jwt:secret', ['--no-interaction' => true]);
|
||||||
Artisan::call('migrate', ['--force' => true]);
|
Artisan::call('migrate', ['--force' => true]);
|
||||||
Artisan::call('passport:keys', ['--no-interaction' => true]);
|
try {
|
||||||
|
Artisan::call('passport:keys', ['--no-interaction' => true]);
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
$tips[] = nl2br(implode("\n", [
|
||||||
|
'您需要打开终端或 PowerShell 来执行这条命令:<code>php artisan passport:keys</code>',
|
||||||
|
'You need to open terminal or PowerShell and execute: <code>php artisan passport:keys</code>'
|
||||||
|
]));
|
||||||
|
}
|
||||||
|
|
||||||
|
return $tips;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user