From 22d49f972d26da22d4212d13f4162c821dd56f1d Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Wed, 1 May 2019 17:08:55 +0800 Subject: [PATCH] Fix loading commands of laravel/passport --- database/update_scripts/update-4.0.4-to-4.1.0.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/database/update_scripts/update-4.0.4-to-4.1.0.php b/database/update_scripts/update-4.0.4-to-4.1.0.php index ac9fabff..f82f2dae 100644 --- a/database/update_scripts/update-4.0.4-to-4.1.0.php +++ b/database/update_scripts/update-4.0.4-to-4.1.0.php @@ -2,6 +2,10 @@ use Artisan; +\Illuminate\Console\Application::starting(function ($artisan) { + $artisan->resolveCommands([\Laravel\Passport\Console\KeysCommand::class]); +}); + Artisan::call('jwt:secret', ['--no-interaction' => true]); Artisan::call('migrate', ['--force' => true]); Artisan::call('passport:keys', ['--no-interaction' => true]);